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

设备位置精度修改 gengdidi

parent 89adf827
This diff is collapsed.
......@@ -142,13 +142,13 @@ class gaodeMap {
that.markerType = markerType;
let infoWindow = new AMap.InfoWindow({
isCustom: true,
offset: new AMap.Pixel(12, -65),
offset: new AMap.Pixel(24, -38),
anchor: "left-top"
});
let marker = new AMap.Marker({
position: [data.longitude, data.latitude],
map: map,
offset: new AMap.Pixel(-13, -30)
offset: new AMap.Pixel(0, 5)
});
this.setMarkerIcon(marker);
if(DEVICE_TYPE.WORKORDER != markerType){
......@@ -175,7 +175,7 @@ class gaodeMap {
map.setZoomAndCenter(13, e.target.getPosition());
let infoWindow = new AMap.InfoWindow({
isCustom: true,
offset: new AMap.Pixel(12, -65),
offset: new AMap.Pixel(24, -38),
anchor: "left-top"
});
infoWindow.setContent(e.target.content);
......@@ -331,7 +331,7 @@ class gaodeMap {
case DEVICE_TYPE.PRESSUREGAGE: {
let icon = new AMap.Icon({
//size: new AMap.Size(51, 23),
image: require("../assets/images/zhibaorenyuan.png"),
image: require("../assets/images/yalibiao.png"),
});
marker.setIcon(icon);
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