Talk:Overpass turbo/MapCSS

From OpenStreetMap Wiki
Jump to: navigation, search

Support for Labels

Do you plan to include support for labels and maybe derive label texts from actual tags (or maybe even several tags + string operations)? Mmd (talk) 09:19, 13 April 2013 (UTC)

Yes, but I'm not sure about some implementation details yet. It'll be pretty basic, I guess: no fancy label-collision-prevention, no text along paths, etc. - just simple captions at the center of or right next to features. Getting the label text from single tags will be pretty straight-forward. More customizing (multiple tags, etc.) could be done via MapCSS-evals.
This can/will also be implemented for the popup-contents.
--Tyr (talk) 16:52, 13 April 2013 (UTC)

No rendering of nodes

Is there a way to suppress the rendering of nodes in Overpass Turbo (apart from opacity: 0; fill-opacity: 0; ?). I only want to see the ways. Thanks! Nillerdk (talk) 08:37, 17 October 2013 (UTC)

Not via MapCSS in the moment, but there is a handy Overpass trick if you do not want to see the additional data of child elements: the skeleton output mode. So instead of you can just use and really only get your ways without any unwanted by-catch. ;) --Tyr (talk) 10:01, 17 October 2013 (UTC)
Thanks! I wasn't aware of the different print-modes! Now the nodes don't show, but some short ways seem to be displayed with circles: Do you know what is going on? Nillerdk (talk) 11:16, 21 October 2013 (UTC)
Yes, in principle, this is expected behaviour: As soon as a line or polygon gets smaller than a certain threshold, it is rendered with a marker just like a POI. This is necessary to get a “fair” visibility of small objects at low zoom levels (otherwise, when searching for sparsely distributed features you would always be able to see POI nodes but not POI buildings!). That said, I know that under some circumstances (like in your example) this rendering can be quite annoying. At the moment you can only deactivate this feature globally in the settings (settings->map->checkbox at “Don't display small features as POIs”). But, I'm working on a better solution for this.
PS: See this enhancement ticket for further details. --Tyr (talk) 12:45, 21 October 2013 (UTC)

What exactly is "overpass query"?

The page says: <osm-script> ... your overpass query here ... </osm-script> What exactly is "overpass query" in it?

Beacuse the following code returns an error:

Example code

and the error reads: An error occured during the execution of the overpass query! This is what overpass API returned:

Error: line 1: static error: Element "osm-script" must not contain text.

--Rmikke (talk) 19:34, 4 November 2015 (UTC) should be now better Mateusz Konieczny (talk) 22:16, 4 November 2015 (UTC)
Hm. I've now changed all examples to use Overpass QL and just dropped the XML-variant (as it is considered obsolete by now).
What do you think?
--Tyr (talk) 07:46, 5 November 2015 (UTC)