Open reilem opened 2 weeks ago
For those interested I found a way to get transparent maps by using a fake url that does not point to anything, e.g. "https://fake-tiles.example.com/{z}/{x}/{y}.png" this returns 404s and will result in a transparent layer.
The docs for
tileUrl
state:However this "or null" is no longer true since version 1.11.0.
This code:
On version 1.10.0 and before used to render an empty image where every pixel had rgba value
(0,0,0,0)
. This was useful for creating a blank image with annotations rendered which could then be overlayed on top of other maps. However, since version 1.11.0 this now creates this image:Is it still possible to create empty layers? Or has this been removed? If this feature has been removed then maybe it would be nice to add this to the release notes as a breaking change and also to update the docs. Thanks!