|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="map">
|
|
|
- <div id="mapDiv" v-if="type == 'normal'"></div>
|
|
|
- <template v-else>
|
|
|
+ <div id="mapDiv" v-show="type == 'normal'"></div>
|
|
|
+ <template v-show="type == 'split'">
|
|
|
<div id="mapCon1"></div>
|
|
|
<div id="mapCon2"></div>
|
|
|
</template>
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
this.type = type;
|
|
|
var view = new View({
|
|
|
// center: transform([103.23, 35.33], "EPSG:4326", "EPSG:3857"), //地图初始中心点
|
|
|
- center: gcoord.transform([103.23, 35.33], gcoord.WGS84, gcoord.BD09), //地图初始中心点
|
|
|
+ center: gcoord.transform([106.67591743605254 ,38.21012898330025], gcoord.WGS84, gcoord.BD09), //地图初始中心点
|
|
|
projection: "EPSG:4326",
|
|
|
zoom: 4,
|
|
|
minZoom: 1,
|