You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2021-07-23 07:49:34

Dragon Bikes
New Member
Registered: 2021-07-22
Posts: 2

Color-Coding Ways Based on Tags

How can I color-code ways based on tags, e.g. number of lanes, surface-type. Is this something that can be done directly in OSM or would I need to use the Overpass API to get this data and then another API like OpenLayers to create the desired layers?

Offline

#2 2021-07-23 12:57:26

SK53
Member
Registered: 2009-01-11
Posts: 705

Re: Color-Coding Ways Based on Tags

Best way is to use overpass-turbo and style the data using MapCSS, see https://wiki.openstreetmap.org/wiki/Ove … rbo/MapCSS

Offline

#3 2021-07-24 08:40:20

Dragon Bikes
New Member
Registered: 2021-07-22
Posts: 2

Re: Color-Coding Ways Based on Tags

Thanks!

Offline

Board footer

Powered by FluxBB