Create a leaflet map and crs is EPSG:4326:
const map = L.map(ID, {
crs: L.CRS.EPSG4326,
zoomControl: false,
center: [34, 108],
maxZoom: 21,
minZoom: 3,
zoom: 3,
});
I want to add a mapbox basemap:
L.tileLayer("https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/256/{z}/{x}/{y}@2x?access_token=" + mytoken;, {
zIndex: 3,
maxZoom: 21,
minZoom: 3,
zoomOffset: 1,
}).addTo(map);
However the basemap is not in the correct position, how can maobox basemap support EPSG: 4326?