sean.zhou
2022-07-22 4dccbb68399da2d46943b8d613585afb49aa5455
src/hooks/use-g-map-cover.ts
@@ -11,10 +11,10 @@
export function useGMapCover () {
  const root = getRoot()
  const AMap = root.$aMapObj
  const normalColor = '#2D8CF0'
  const store = rootStore
  const coverList = store.state.coverList
  function AddCoverToMap (cover :any) {
    root.$aMap.add(cover)
    coverList.push(cover)
@@ -27,10 +27,10 @@
    } = {
      '2d8cf0': pin2d8cf0,
      '19be6b': pin19be6b,
      212121: pin212121,
      b620e0: pinb620e0,
      e23c39: pine23c39,
      ffbb00: pineffbb00,
      '212121': pin212121,
      'b620e0': pinb620e0,
      'e23c39': pine23c39,
      'ffbb00': pineffbb00,
    }
    const iconName = (color?.replaceAll('#', '') || '').toLocaleLowerCase()