Open yeshancqcq opened 4 years ago
Otherwise, the marker might return lng values that are out of bounds.
The traditional way of defining bounds in leaflet does not work.
var southWest = L.latLng(-85, -200), northEast = L.latLng(85, 200), mybounds = L.latLngBounds(southWest, northEast);
and in the Tilelayer:
<TileLayer attribution='© xxx>' url='xxx' minZoom = {3} bounds = {mybounds} />
Otherwise, the marker might return lng values that are out of bounds.
The traditional way of defining bounds in leaflet does not work.
var southWest = L.latLng(-85, -200), northEast = L.latLng(85, 200), mybounds = L.latLngBounds(southWest, northEast);
and in the Tilelayer:
<TileLayer attribution='© xxx>' url='xxx' minZoom = {3} bounds = {mybounds} />