GeoJSON vs. Maptiler Layer mismatch after initialization

133 views Asked by At

my LeafLet map contains a GeoJSON and a Maptiler layer. First I set up my map by var map = L.map(...). Right after that I add my GeoJSON layer. Then I load my map style via AJAX, change a few things in it, and finally add it to the map as well.

After the map is initialized, both layers seem to have a mismatch in zoom and pan (see image).

GeoJSON - Maptiler mismatch

1

There are 1 answers

0
rberneder On

I just figured out that the Mapbox-GL-LeafLet-plugin (https://github.com/mapbox/mapbox-gl-leaflet) which is advised by Maptiler, is not working for me.

When I use an open, unstyled TileLayer, the problem is gone.