Search code examples
javaleafletvaadinopenstreetmap

OpenStreetMap labels - configuration


The OpenStreetMap map I'm using in the application shows the highway labels – those in pink squares below.

Is there a way to remove them so that they don't show on the map? They are of no use in the app and taking up too much space.

I'm using OpenStreetMap in Java via Vaadin leaflet.

TIA.


Solution

  • When using raster tiles you can't influence the map style since the rendering stylesheet is part of the tile server. However you can switch to a different tile server.