1

What is the equivalent code for iOS to show the infowindow of marker in Google Maps in iOS

Marker marker = myMap.addMarker(new MarkerOptions()
                 .position(latLng)
                 .title("Title")
                 .snippet("Snippet")
                 .icon(BitmapDescriptorFactory
                 .fromResource(R.drawable.marker)));

marker.showInfoWindow();

like this in android.

Kara
  • 6,115
  • 16
  • 50
  • 57
lhencq
  • 505
  • 2
  • 6
  • 16

1 Answers1

0
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(17.4375194, 78.3808417);
marker.title = @"collabor";
mapView_.delegate = self;

marker.icon = [GMSMarker markerImageWithColor:[UIColor blackColor]];
marker.map= mapView_;
marker.snippet=@"snippet";

the infowindow will be automatically displayed. refer google's documentation for more information

BalaChandra
  • 632
  • 9
  • 33