شعار خريطة الشارع المفتوحة خريطة الشارع المفتوحة

Does it render?

نُشِر بواسطة sabas88 في 4 يونيو 2014 باللغة English

Last year I did a quick demo application to mock people asking if an object will get rendered on the map, extracting some information from the stylesheet used for the map on osm.org (it was during the switch to the Carto version).

Today I reviewed the process of extracting that information and generated semi-automatically a complete list of key-value pairs, which powers now DoesItRender.

Code is here https://github.com/sabas/doesitrender and thanks to Pages, it’s active on http://stefanosabatini.eu/doesitrender/

If a tag is in the style, it answers yes (http://stefanosabatini.eu/doesitrender/#amenity=bar). If not, it gives option (http://stefanosabatini.eu/doesitrender/#tourism=unicorns) to display it via overpass-turbo or xapi-viewer.

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

مناقشة

تعليق من jongleur1983 في 4 يونيو 2014 في 12:24

Hi, still a nice tool - but still open issues IMHO… it says it renders the tag name - yes it does, but only for some objects, as the name tag isn’t rendered anywhere any more. natural=coastline in fact is rendered as well, but treated differently and thus not occuring in the stylesheet.

And of course it would be really(!) great to get a list of sample renderings for a tag that DOES render ;) (which of course may be out of scope for you)

تعليق من sabas88 في 4 يونيو 2014 في 13:00

Thanks jongleur :-)

I added some phrases in the output which point to Wiki and TagInfo for the user to gather more info… Some tag wiki pages used to have a description of the result, didn’t them?

تعليق من Zverik في 4 يونيو 2014 في 13:47

Can you process multiple styles with this? For example, to answer “it doesn’t render with the default OSM style, but try switching to Humanitarian layer”.

تعليق من sabas88 في 4 يونيو 2014 في 14:00

Yes, it originally did that with Mapnik vs Carto.. The code in itself it’s extensible, it only needs a json with the handled tags.. (as I didn’t find a way to automatically search tags easily in the sql queries, we could only consider Filter entries for example).

تسجيل الدخول لترك تعليق