iserver9d
前段:leaflet 9d
include-leaflet.js中load方法
var includes = (targetScript.getAttribute('include') || "").split(",");
var excludes = (targetScript.getAttribute('exclude') || "").split(",");
if (!inArray(excludes, 'leaflet')) {
inputCSS("https://cdn.bootcss.com....");
inputScript("https://cdn.bootcss.com.......");
}
为什么会需要外网访问这个地址才能出来地图数据没有外网的话
加载地图的时候 比如: map = L.map('map', {
crs: L.CRS.EPSG4326,
center: [38.08, 114.55],
maxZoom: 15,
minZoom: 8,
zoom: 9,
});
L就报错