inocan-group / vue3-google-map

A set of composable components for easy use of Google Maps in your Vue 3 projects.
https://vue3-google-map.com
MIT License
280 stars 57 forks source link

cant use local image for marker #53

Closed pisangGoreng closed 2 years ago

pisangGoreng commented 2 years ago

Hi, thanks for making this Lib

I try to change the marker with the png / svg in my local repo but not work. is my code wrong?

<Marker 
  v-for="location in locations" :key="location.lat"
  :options="{ 
    position: { ...location }, 
    animation: true,
    icon: {
      url: require('../../assets/img/markers/home.png'),
      scaledSize: { width: 20, height: 20 },
    }
  }" 
/>

any reference to use fontawesome icons as marker?

Thanks & have a good day

HusamElbashir commented 2 years ago

Hi @pisangGoreng

Can you please provide a reproduction? I tried this on my end and it seems to work fine. As for fontawesome this might be helpful: https://stackoverflow.com/questions/16375077/using-icon-fonts-as-markers-in-google-maps-v3

HusamElbashir commented 2 years ago

Closing due to inactivity