To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
Leaflet + Google Maps Add-On not working properly.
6 years ago Nov 11, 2016 11:29am
there is a small bug in Google Maps add-on for leaflet.
If one adds multiple base layers on a map and Google Maps is the last base layer added (hence the active layer on load), then on initial load google maps is selected in the layer control however the previously added layer is showing on the map.
If the user clicks again on the already selected google maps layer in the control then google maps loads fine.
This only happens with google maps whilst bing maps from the same add on work as expected.