iOS Question iGoogleMaps and Draggable Marker

Discussion in 'iOS Questions' started by mauro vicamini, Jul 17, 2015.

  1. mauro vicamini

    mauro vicamini Active Member Licensed User

    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.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    No event is fired. The only marker related event is the MarkerClick event.
     
  3. mauro vicamini

    mauro vicamini Active Member Licensed User

    It's possible to resolve with inline Objective-C?
    I've found this
    Code:
    -(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.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. mauro vicamini

    mauro vicamini Active Member Licensed User

    Thanks Erel!!!
    Great as always!
     
Loading...