|
@@ -161,7 +161,7 @@ export default {
|
|
|
const styleJson = require('@/styles/map_style.json');
|
|
|
setTimeout(() => {
|
|
|
map.setMapStyleV2({styleJson:styleJson});
|
|
|
- }, 600);
|
|
|
+ }, 1000);
|
|
|
|
|
|
|
|
|
this.searchControlOffset=new BMap.Size(20, 20)
|
|
@@ -287,10 +287,11 @@ export default {
|
|
|
let studentWindowContent=this.createMarkerContent(data)
|
|
|
var infoWindow = new BMap.InfoWindow(studentWindowContent,opts); // 创建信息窗口对象
|
|
|
this.map.openInfoWindow(infoWindow, pt); //开启信息窗口
|
|
|
- this.map.centerAndZoom(pt,19);
|
|
|
+ this.map.centerAndZoom(pt,17);
|
|
|
+
|
|
|
},
|
|
|
createMarkerContent(data){
|
|
|
- let address
|
|
|
+ let address='-'
|
|
|
|
|
|
var myGeo = new BMap.Geocoder();
|
|
|
// 根据坐标得到地址描述
|