var map,url = '';本地地址
// 方式一:1.调用 L.supermap.initMap,根据 SuperMap iServer 地图服务的地图信息,创建地图和底图
map= L.supermap.initMap(url);
// 方式三
//L.supermap.initMap(url, {
// mapOptions: {center: [105.59119, 30.5253],zoom: 8}
// }).then((res) => {map = res.map;});
// 方式二:1.调用 L.supermap.MapService,获取 SuperMap iServer 地图服务的地图信息
// 2.调用 L.supermap.crsFromMapJSON 创建 CRS
// 3.调用 L.map 创建地图
// 4.调用 L.supermap.TiledMapLayer 创建底图
// new L.supermap.MapService(url).getMapInfo().then((res) => {
// var crs = L.supermap.crsFromMapJSON(res.result);
// map = L.map('map', {
// crs: crs,
// center: [105.61817228,30.51651044],
// maxZoom: 18,
// zoom: 0
// });
// new L.supermap.TiledMapLayer(url).addTo(map);
// });
方式一可以加载出本地发布的地图,方式二与方式三部能加载本地发布的地图