1

I'm developing an application, using OpenLayers and OpenStreetMap, which can not have some subtitles, because it pollutes the map, subtitles like this:Forest area

Preservation area

this is my code

defaultRasterLayer = new ol.layer.Tile({
    source: new ol.source.OSM()
});
  var  map = new ol.Map({
        layers: [defaultRasterLayer],
        target: 'map ',
        view: new ol.View({
        center: [0, 0],
        zoom: 2
    })
    });

How do I remove it?

4

To apply a different symbology, you would need to either

  • find a source with a style that you like
  • find a source that provides vector tiles, which you can style as you wish
  • download OSM data, style it and serve it on your own server
2

Unfortunately as far as I'm aware you can't, because the labels are rendered into the tiles that you're displaying.

You could use source of tiles without labels, here is an example mc.bbbike.org

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.