|
@@ -85,7 +85,7 @@ type MapInfo = {
|
|
|
id: string;
|
|
|
};
|
|
|
|
|
|
-// const layer = L.tileLayer('http://a.map.jms.gd/tile/osm/{z}/{x}/{y}.png') //内置地图
|
|
|
+const layer = L.tileLayer('http://a.map.jms.gd/tile/osm/{z}/{x}/{y}.png') //内置地图
|
|
|
// const layer = L.tileLayer('http://wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=6&x={x}&y={y}&z={z}&token=YOUR_API_KEY')
|
|
|
const props = defineProps<{ mapId: number }>();
|
|
|
const route = router.currentRoute.value;
|
|
@@ -138,10 +138,9 @@ onMounted(async () => {
|
|
|
}
|
|
|
mapName.value.mapId = caseInfoData.value.mapId;
|
|
|
mapName.value.mapUrl = caseInfoData.value.mapUrl;
|
|
|
- const layer = L.tileLayer(
|
|
|
- caseInfoData.value.mapUrl || mapOptions.value[0].mapUrl[0].tempUrl,
|
|
|
-
|
|
|
-);
|
|
|
+// const layer = L.tileLayer(
|
|
|
+// caseInfoData.value.mapUrl || mapOptions.value[0].mapUrl[0].tempUrl,
|
|
|
+// );
|
|
|
console.log("mapOptions", mapOptions.value, caseInfoData.value);
|
|
|
let center = [22.61, 113.05];
|
|
|
if (caseInfoData.value.latAndLong) {
|