NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Let's say one wants to query a country name that one sees on https://www.openstreetmap.org/#map=3/44.16/118.66 . Is there an alternative way to do it without having to zoom in first? See also https://github.com/openstreetmap/openstreetmap-website/issues/2357 .

asked 25 Aug '19, 12:51

jidanni's gravatar image

jidanni
339323647
accept rate: 0%

edited 25 Aug '19, 12:53


Assuming you are talking about the openstreetmap.org website and not about anything else, click on "where is this" in the top left-hand corner of the screen.

permanent link
This answer is marked "community wiki".

answered 25 Aug '19, 13:42

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

wikified 25 Aug '19, 13:43

Thank you, however my goal is to find what the purple 臺中市 refers to (not the black one), after right clicking Center Map Here, and then the Where Is This you mentioned, https://www.openstreetmap.org/search?whereami=1&query=24.2069%2C120.7013#map=10/24.2044/120.7095 alas I cannot find out, plus it disappears when zoomed.

(25 Aug '19, 21:00) jidanni
1

If you're asking about what some text on a particular map rendering looks like you'll need to post a screenshot for people to be sure, but assuming that you're talking about the "standard" layer on osm.org there are two candidates:

https://www.openstreetmap.org/node/60655918

(the city, in black)

https://www.openstreetmap.org/relation/2921154

(the admin level 4 area, in purple)

The code to decide what gets shown at what zoom level is a bit convoluted. For admin levels it's https://github.com/gravitystorm/openstreetmap-carto/blob/dd096af4f566eb9c31e50ac447215f68e45b563f/admin.mss#L207 - note that not everything gets shown at every zoom level.

An effective way of finding where a name is used is to search using taginfo, in this case https://taginfo.openstreetmap.org/tags/name=%E8%87%BA%E4%B8%AD%E5%B8%82 finds exactly 2 matches (the ones shown above).

(25 Aug '19, 22:25) SomeoneElse ♦

I see. I was relying on the built in https://www.openstreetmap.org/search?query=中區

(OK, let's hope the user knows how to input the words he sees on the map.)

(26 Aug '19, 13:40) jidanni

(I suppose the two places, having the same location, were pushed apart by the algorithm, so they could both be visible at the same time.)

(26 Aug '19, 13:42) jidanni
2

Actually, the two places don't have the same location. One is a node, one and area, and the place that Mapnik (the software that decides where to put markers) places the area marker doesn't match the node.

(26 Aug '19, 13:59) SomeoneElse ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×147
×99

question asked: 25 Aug '19, 12:51

question was seen: 1,655 times

last updated: 26 Aug '19, 13:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum