Our map bases are beautifully colorful. This is useful when the map itself is the main focus. However, there are scenarios where the content displayed above the map is more important than the map itself.
For such cases, it may be appropriate to color or rather decolorize the base map. Typically, converting colors to almost black and white is used. Transparency can also be applied to tiles, allowing the background color to show through.
The source tiles remain the same (we recommend using our Basic Map, which contains the least amount of detail). The chosen mapping library, in our case Leaflet, takes care of the color change.
//Apply a color filter to map layer
layer.getContainer().style.filter = 'grayscale(90%) opacity(60%)';
And don’t forget, the Mapy.cz logo must remain in its original colors.