開放街圖標誌 OpenStreetMap 開放街圖

Styling subway networks in Overpass Turbo

於 2015年十一月30日 由 PlaneMadEnglish發表。

Overpass Turbo is one of my favorite OSM data tools - a simple man’s GIS.

Using the wizard, its relatively trivial to make simple queries like river to query for all the rivers from the map view.

Hidden in the cryptic query code editor is support for simple MapCSS based styling of the data.

The subway network in New Delhi (blue) and under construction (red) - View

Also try adding this piece to the query style block to display popups of all the station names

node[railway=station]{ text : name; }

電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

joost schouppe2016年03月 9日 18時19分 發表的評論

I had no idea that was possible. How did you get the transparent big nodes to disappear on the screenshot? When I run your query, they still do appear.

Now if you were to query the data with relation[“type”=”route”][“route”=”subway”] , do you think you could feed the MapCSS with the colour tag?

PlaneMad2016年03月 9日 19時15分 發表的評論

Aha, thats a hidden setting.

Settings>Map>Don’t display small features as POIs.

Don’t think data based styling is supported :?

joost schouppe2016年03月10日 08時40分 發表的評論

This isn’t just cool, it’s also super easy. For the project you commented on at my diary, I just created this query. Absolutely impressive stuff. Overpass-Turbo is probably THE coolest tool in the OSM toolbox.

PlaneMad2016年03月10日 11時25分 發表的評論

Awesome! Wish there was a MapCSS setting to not display small features as POIs so everyone can see the same style.

登入 來留下評論