This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Showing names on overpass turbo maps

0

This works great, but I would also like to get the name of each object (milestone) found shown next to the object.

[out:json][timeout:25];
// gather results
(
  // query part for: “highway=milestone”
  node["highway"="milestone"]({{bbox}});
  way["highway"="milestone"]({{bbox}});
  relation["highway"="milestone"]({{bbox}});
);
// print results
out body;
>;
out skel qt;

asked 01 Apr '20, 19:34

jidanni's gravatar image

jidanni
339323647
accept rate: 0%

2

Isn't it weird for a milestone to have a name? It is not mentioned as a useful combination on the wiki page.

(02 Apr '20, 14:08) escada

OK, got it: {text: distance;}

(02 Apr '20, 15:38) jidanni

One Answer:

2

As documented on the wiki, you can use MapCSS for that. Here is an example.

Regards.

answered 02 Apr '20, 10:20

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

Source code available on GitHub .