代码如下:运行之后天地图只出现一半
proj4.defs("EPSG:4490", "+proj=longlat +ellps=GRS80 +no_defs");
var crs = new L.Proj.CRS("EPSG:4490", {
bounds: L.bounds([-180, -90], [180, 90]),
origin: [-180, 90],
});
var map = L.map('map', {
center: [0, 0],
zoom: 0,
crs: crs,
});
L.supermap
.tiandituTileLayer({
key: 'a300426f2336ba9317431597b6bca3bc'
})
.addTo(map);