Commit 716d97d6 authored by 耿迪迪's avatar 耿迪迪

设备位置精度修改 gengdidi

parent 89adf827
This diff is collapsed.
...@@ -142,13 +142,13 @@ class gaodeMap { ...@@ -142,13 +142,13 @@ class gaodeMap {
that.markerType = markerType; that.markerType = markerType;
let infoWindow = new AMap.InfoWindow({ let infoWindow = new AMap.InfoWindow({
isCustom: true, isCustom: true,
offset: new AMap.Pixel(12, -65), offset: new AMap.Pixel(24, -38),
anchor: "left-top" anchor: "left-top"
}); });
let marker = new AMap.Marker({ let marker = new AMap.Marker({
position: [data.longitude, data.latitude], position: [data.longitude, data.latitude],
map: map, map: map,
offset: new AMap.Pixel(-13, -30) offset: new AMap.Pixel(0, 5)
}); });
this.setMarkerIcon(marker); this.setMarkerIcon(marker);
if(DEVICE_TYPE.WORKORDER != markerType){ if(DEVICE_TYPE.WORKORDER != markerType){
...@@ -175,7 +175,7 @@ class gaodeMap { ...@@ -175,7 +175,7 @@ class gaodeMap {
map.setZoomAndCenter(13, e.target.getPosition()); map.setZoomAndCenter(13, e.target.getPosition());
let infoWindow = new AMap.InfoWindow({ let infoWindow = new AMap.InfoWindow({
isCustom: true, isCustom: true,
offset: new AMap.Pixel(12, -65), offset: new AMap.Pixel(24, -38),
anchor: "left-top" anchor: "left-top"
}); });
infoWindow.setContent(e.target.content); infoWindow.setContent(e.target.content);
...@@ -331,7 +331,7 @@ class gaodeMap { ...@@ -331,7 +331,7 @@ class gaodeMap {
case DEVICE_TYPE.PRESSUREGAGE: { case DEVICE_TYPE.PRESSUREGAGE: {
let icon = new AMap.Icon({ let icon = new AMap.Icon({
//size: new AMap.Size(51, 23), //size: new AMap.Size(51, 23),
image: require("../assets/images/zhibaorenyuan.png"), image: require("../assets/images/yalibiao.png"),
}); });
marker.setIcon(icon); marker.setIcon(icon);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment