Ejemplo n.º 1
0
 /* web转经纬度 */
 function web2lnglat(x, y){
     return proj4(EPSG900913).inverse([x, y])
 }
Ejemplo n.º 2
0
 /* 经纬度转web */
 function lnglat2web(lng, lat){
     return proj4(EPSG900913).forward([lng, lat])
 }