trying to use EPSG:3857 in Leaflet
问题 I am trying to make leaflet use EPSG:3857 as an input coordinate system. I use porj4leaflet to achieve this. I have defined my map instance like this: var map = L.map('map', { center: [8378860.13, 1481133.311008498], zoom: 7, crs: new L.Proj.CRS( 'EPSG:3857', '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs', { resolutions: [ 8192, 4096, 2048, 1024, 512, 256, 128 ], origin: [0, 0] } ) }); When I try to run this, i get