Allow rotation change in Annotation.updateLocation
mcongrove opened this issue · comments
Matthew Congrove commented
Would it be possible to allow annotation rotation to be changed from within the updateLocation method, rather than just lat/lon?
Hans Knöchel commented
Added #93, try it out!
Joseph commented
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
Hans Knöchel commented
Thanks @yozef for the review!
Matthew Congrove commented
You may want to point out in the docs that this only works if animated: true
is set. That confused me for a bit!
Hans Knöchel commented
Whoops, forgot about that. #94 will take care of that.
Hans Knöchel commented
@mcongrove New release drafted ~ https://github.com/hansemannn/titanium-google-maps/releases/tag/v3.6.1-beta.1