This commit is contained in:
parent
65d405eb3c
commit
cc057efa91
|
|
@ -161,6 +161,13 @@ export function allDevices(options, type, show) {
|
||||||
graphicLayer.addGraphic(graphic);
|
graphicLayer.addGraphic(graphic);
|
||||||
} else {
|
} else {
|
||||||
graphic.show = show;
|
graphic.show = show;
|
||||||
|
graphic.setOptions({
|
||||||
|
position: new mars3d.LngLatPoint(
|
||||||
|
deviceItem.lon,
|
||||||
|
deviceItem.lat,
|
||||||
|
0
|
||||||
|
)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -194,6 +201,9 @@ export function allDevices(options, type, show) {
|
||||||
graphicLayer.addGraphic(graphic);
|
graphicLayer.addGraphic(graphic);
|
||||||
} else {
|
} else {
|
||||||
graphic.show = show;
|
graphic.show = show;
|
||||||
|
graphic.setOptions({
|
||||||
|
position: new mars3d.LngLatPoint(deviceItem.lon, deviceItem.lat, 0)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue