|
@@ -956,7 +956,7 @@ export default {
|
|
|
this.infoWindow.open();
|
|
|
},
|
|
|
initMap(data, plateNo) {
|
|
|
- /*this.map = new AMap.Map("container", {resizeEnable: true});
|
|
|
+ this.map = new AMap.Map("container", {resizeEnable: true});
|
|
|
this.infoWindow = new AMap.InfoWindow({
|
|
|
ffset: new AMap.Pixel(0, -30),
|
|
|
offset: new AMap.Pixel(0, -30)
|
|
@@ -990,7 +990,7 @@ export default {
|
|
|
this.infoWindow.open(this.map, this.map.getCenter());
|
|
|
this.marker.on('click', this.markerClick);
|
|
|
this.marker.emit('click', {target: this.marker});
|
|
|
- this.map.setFitView();*/
|
|
|
+ this.map.setFitView();
|
|
|
/*var center = new TMap.LatLng(39.984104, 116.307503);//设置中心点坐标
|
|
|
//初始化地图
|
|
|
var map = new TMap.Map("container", {
|
|
@@ -1039,7 +1039,7 @@ export default {
|
|
|
infoWindow.setPosition(evt.geometry.position);//设置信息窗位置
|
|
|
infoWindow.setContent(evt.geometry.position.toString());//设置信息窗内容
|
|
|
})*/
|
|
|
- var rightClicked = false;
|
|
|
+ /* var rightClicked = false;
|
|
|
if (data.location == null) {
|
|
|
data.location = [40.040422,116.273521]
|
|
|
}
|
|
@@ -1128,7 +1128,7 @@ export default {
|
|
|
+ '<p style="padding: 5px 0"><span style="color: #a0a0a0">经纬度:</span>' + data.location.join(',') + '</p>'
|
|
|
+ '</div>');
|
|
|
}
|
|
|
- });
|
|
|
+ });*/
|
|
|
/*var map = new TMap.Map(document.getElementById("container"), {
|
|
|
center: new TMap.LatLng(39.916527, 116.397128), // 设定地图中心点
|
|
|
zoom: 13 // 设定地图缩放级别
|