sean.zhou
2023-03-14 b09ed762edb698bb12b11beb28ee7c2de76ceecc
src/hooks/use-g-map-tsa.ts
@@ -10,7 +10,7 @@
export function deviceTsaUpdate () {
  const root = getRoot()
  const AMap = root.$aMap
  let AMap = root.$aMap
  const icons = new Map([
    [EDeviceTypeName.Aircraft, droneIcon],
@@ -43,8 +43,12 @@
    if (markers[sn]) {
      return
    }
    if (root.$aMap === undefined) {
      return
    }
    AMap = root.$aMap
    markers[sn] = new AMap.Marker({
      position: new AMap.LngLat(lng || 113.935913, lat || 22.525335),
      position: new AMap.LngLat(lng || 113.943225499, lat || 22.577673716),
      icon: initIcon(type),
      title: name,
      anchor: 'top-center',