Biểu trưng OpenStreetMap OpenStreetMap

Styling subway networks in Overpass Turbo

Do PlaneMad đăng vào 30 tháng 11 năm 2015 bằng English.

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; }

Biểu tượng thư điện tử Biểu tượng Bluesky Biểu tượng Facebook Biểu tượng LinkedIn Biểu tượng Mastodon Biểu tượng Telegram Biểu tượng X

Thảo luận

Bình luận của joost schouppe vào 9 tháng 3 năm 2016 lúc 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?

Bình luận của PlaneMad vào 9 tháng 3 năm 2016 lúc 19:15

Aha, thats a hidden setting.

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

Don’t think data based styling is supported :?

Bình luận của joost schouppe vào 10 tháng 3 năm 2016 lúc 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.

Bình luận của PlaneMad vào 10 tháng 3 năm 2016 lúc 11:25

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

Đăng nhập để nhận xét