|
@@ -22,16 +22,16 @@
|
|
|
var map = L.map('map', {
|
|
|
zoomControl: false,
|
|
|
preferCanvas: true,
|
|
|
- // crs: L.CRS.EPSG4326,
|
|
|
+ crs: L.CRS.EPSG4326,
|
|
|
center:centerPoint,
|
|
|
maxZoom: 18,
|
|
|
- zoom: 10
|
|
|
+ zoom: 9
|
|
|
}).on({"click": callbackFunction}); //添加click事件
|
|
|
|
|
|
var pointsLayer = L.featureGroup().addTo(map); //添加到地图
|
|
|
|
|
|
- console.log("*****",basePath+"/ChinaDark")
|
|
|
- L.supermap.tiledMapLayer(basePath+"/ChinaDark", {
|
|
|
+ console.log("*****",basePath+"/HuiNan")
|
|
|
+ L.supermap.tiledMapLayer(basePath+"/HuiNan", {
|
|
|
noWrap: true
|
|
|
}).addTo(map);//添加影像图
|
|
|
|