Reputation: 896
I'm using OpenLayers to display an openstreetmap. Is there a way to edit certain features on the map? For example changing the color of the water, removing the border between countries etc. If it can not be done using JavaScript, I'm guessing there are other ways to do this - like hosting your own version of the map which you can then edit as much as you want.
Has anyone tried something like this? How would I go about doing this?
Thanks
Upvotes: 4
Views: 3497
Reputation: 3856
No, you can't change colors in OpenLayers.Layer.OSM because it's rendered dead images with all styling applied on the server-side. Only way to apply your own style is to host osm yourself. Here's the tutorial that will help you get started.
Upvotes: 6