M mauro vicamini Active Member Licensed User Longtime User Jul 17, 2015 #1 Hi everyone, if I set a marker as draggable, what event of what object will be fired at the drop of the marker to get his position? I use iGoogleMap not Webview. Thanks.
Hi everyone, if I set a marker as draggable, what event of what object will be fired at the drop of the marker to get his position? I use iGoogleMap not Webview. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Jul 17, 2015 #2 No event is fired. The only marker related event is the MarkerClick event. Upvote 0
M mauro vicamini Active Member Licensed User Longtime User Jul 17, 2015 #3 Erel said: No event is fired. The only marker related event is the MarkerClick event. Click to expand... It's possible to resolve with inline Objective-C? I've found this Code: Copy -(void)mapView:(GMSMapView *)mapView didEndDraggingMarker:(GMSMarker *)marker{ if(marker.userData = @"xMark") NSLog(@"New marker location: %@", marker.location); } but i don't know how to pass mapwiew reference and the marker reference and how to rise a B4I event to catch the new position. I don't know also how to call it from B4I code. Upvote 0
Erel said: No event is fired. The only marker related event is the MarkerClick event. Click to expand... It's possible to resolve with inline Objective-C? I've found this Code: Copy -(void)mapView:(GMSMapView *)mapView didEndDraggingMarker:(GMSMarker *)marker{ if(marker.userData = @"xMark") NSLog(@"New marker location: %@", marker.location); } but i don't know how to pass mapwiew reference and the marker reference and how to rise a B4I event to catch the new position. I don't know also how to call it from B4I code.
Erel B4X founder Staff member Licensed User Longtime User Jul 19, 2015 #4 Here: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.48179/page-2#post-354553 Upvote 0
Here: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.48179/page-2#post-354553
M mauro vicamini Active Member Licensed User Longtime User Jul 19, 2015 #5 Thanks Erel!!! Great as always! Upvote 0