//卫星瓦片地图 // console.log(process.env.VITE_BASE_URL_MAP); var bmapcfg = { 'imgext': '.jpg', //瓦片图的后缀 ------ 根据需要修改,一般是 .png .jpg //这里我直接用的路径是/static/bmap_offline_demo/tiles,如果瓦片数量较大,可改为瓦片服务的地址 // tiles_dir: "images", //普通瓦片图的地址,为空默认在 offlinemap/tiles/ 目 //现场 tiles_dir: "map", //普通瓦片图的地址,为空默认在 offlinemap/tiles/ 目 // tiles_path : 'http://172.16.1.162:8123/HeBeiDarkMap/', // tiles_hybrid: 'http://172.16.1.162:8123/HeBeiDarkMap/', //卫星瓦片图的地址,为空默认在 offlinemap/tiles_hybrid/ 目 // tiles_self : 'http://172.16.1.162:8123/HeBeiDarkMap/' //自定义图层的地址,为空默认在 offlinemap/tiles_self/ 目录 // tiles_path: "http://111.229.30.246:4008/HeBeiDarkMap/", // tiles_hybrid: "http://111.229.30.246:4008/HeBeiDarkMap/", //卫星瓦片图的地址,为空默认在 offlinemap/tiles_hybrid/ 目 // tiles_self: "http://111.229.30.246:4008/HeBeiDarkMap/", //自定义图层的地址,为空默认在 offlinemap/tiles_self/ 目录 //现场 tiles_path: "http://13.14.64.150:3638/", tiles_hybrid: "http://13.14.64.150:3638/", //卫星瓦片图的地址,为空默认在 offlinemap/tiles_hybrid/ 目 tiles_self: "http://13.14.64.150:3638/", //自定义图层的地址,为空默认在 offlinemap/tiles_self/ 目录 }; //下面的保持不动/// var scripts = document.getElementsByTagName("script"); var JS__FILE__ = scripts[scripts.length - 1].getAttribute("src"); //获得当前js文件路径 bmapcfg.home = JS__FILE__.substr(0, JS__FILE__.lastIndexOf("/") + 1); //地图API主目录 (function () { window.BMap_loadScriptTime = (new Date).getTime(); //加载地图API主文件 document.write(''); //加载扩展函数 document.write(''); //加载城市坐标 document.write(''); })(); ///