GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
560 stars 653 forks source link

Rotate Marker #129

Open mirmousaviii opened 7 years ago

mirmousaviii commented 7 years ago

I used image icons for marker with icon attribute, Can I rotate the marker icon?

gmap-marker:

        <gmap-marker
          v-for="m in markers"
          :key="m.id"
          :position="m.position"
          :icon="m.markerIcon"
        ></gmap-marker>

Marker Data:


  markers: [
          {
            id: "b1",
            position: {lat: 35.7728737, lng: 51.4158012},
            markerIcon: mapMarkerBlack,
            rotate: 30
          },
          {
            id: "b2",
            position: {lat: 35.7760000, lng: 51.4160000},
            markerIcon: mapMarkerSilver,
            rotate: 60
          },
          {
            id: "b3",
            position: {lat: 35.7780000, lng: 51.4190000},
            markerIcon: mapMarkerViolet,
            rotate: 120
          }