hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow rotation change in Annotation.updateLocation

mcongrove opened this issue · comments

Would it be possible to allow annotation rotation to be changed from within the updateLocation method, rather than just lat/lon?

Added #93, try it out!

You should find this feature in 3.6.0.

annotation.updateLocation({
    // Required
    latitude: 36.368122,
    longitude: -125.913653, 

    // Optional
    animated: true,
    duration: 1000 // in MS, default: 2000
    opacity: 0.5,
    rotation: 30 // in degrees, clockwise from the default position
});

https://github.com/hansemannn/titanium-google-maps/releases/tag/v3.6.0

Thanks @yozef for the review!

You may want to point out in the docs that this only works if animated: true is set. That confused me for a bit!

Whoops, forgot about that. #94 will take care of that.