|
|
@@ -325,14 +325,14 @@ function drawMarkers() {
|
|
|
let marker = new AMap.Marker({
|
|
|
content,
|
|
|
position: new AMap.LngLat(i.longitude, i.latitude),
|
|
|
- offset: new AMap.Pixel(-75, 30),
|
|
|
+ offset: new AMap.Pixel(-80, -20),
|
|
|
});
|
|
|
let infoWindowContent = `<div class='window-title pointer' style='font-size:12px'>${i.shipName}</div>
|
|
|
<div style='font-size:12px;margin-top:5px'>查看详情</div>
|
|
|
`;
|
|
|
let infoWindow = new AMap.InfoWindow({
|
|
|
position: new AMap.LngLat(i.longitude, i.latitude),
|
|
|
- offset: new AMap.Pixel(5, 35),
|
|
|
+ offset: new AMap.Pixel(0, -10),
|
|
|
content: infoWindowContent,
|
|
|
});
|
|
|
|