Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate Marker #129

Open
mirmousaviii opened this issue Apr 12, 2017 · 0 comments
Open

Rotate Marker #129

mirmousaviii opened this issue Apr 12, 2017 · 0 comments

Comments

@mirmousaviii
Copy link

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
          }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant