hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium
Other
87 stars 26 forks source link

Bug: Dragend Event contains old annotation coordinates #33

Closed adelsamy closed 7 years ago

adelsamy commented 8 years ago

Hi, i using dargend event to get lat and long final to pin but i can't get it because dragend Event don't update marker lat and long please help me i need get final lat and long when dragend event work

thank you for help me Regards,

yozef commented 8 years ago

@adelsamy When the dragend event fires, doesn't it return you an annotation object?

adelsamy commented 8 years ago

@yozef yes, return annotation object but with same first lat and long

yozef commented 8 years ago

It seems to be implemented properly. Then the Google Maps SDK dosen't seem to return the end location.

adelsamy commented 8 years ago

mmm, Ok what your Suggest to get end location ?

hansemannn commented 8 years ago

Yes, just checked it. Google Maps does not return anything else. I cannot find any example code, maybe it is an issue in the Google Maps iOS SDK?

hansemannn commented 8 years ago

Ok got it. We search for the annotation inside our cache and return it. Because it is updated during dragging, its location needs to be updated and be returned afterwards. Will setup a fix for the next release, but that can take a week or two some more weeks.

hansemannn commented 8 years ago

Ok, so I finally had some time to investigate the issue and provided a possible solution in this PR: https://github.com/hansemannn/ti.googlemaps/pull/51 @yozef Since you know how to build, can you verify/test this?

yozef commented 8 years ago

Sure

hansemannn commented 8 years ago

Try ti.googlemaps-iphone-2.5.1.

hansemannn commented 8 years ago

@yozef ?

yozef commented 8 years ago

I haven't tried it yet... was trying to figure out the adding annotation why it doesn't "always" appear.

I will give this issue of drag event a try this weekend

yozef commented 8 years ago

I had an older copy of 2.5.1 when it was released and tested against it. The annotations are not displaying in order to test the drag event. Relates to Issues: #34 & #54 simulator screen shot oct 12 2016 9 55 33 am

hansemannn commented 8 years ago

Just pushed a lot of stuff to https://github.com/hansemannn/ti.googlemaps/pull/51, please try the updated PR. I'm also drafting a public 2.6.0 Beta here.

hansemannn commented 7 years ago

Fixed in the latest 2.6.0 release :-)