Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Native map point open infowindow by default

$
0
0

I wanted to one Infor window to be open when map is loading

currently what is happening is when user tap the pin info then only the pin info window shows up.

I have seen some code there markerOpt1.showInfoWindow() there is no method like this.

As per the documentation i know only one info window can pops up.In my scenario only one pin is there

Android implementation

public void OnMapReady(GoogleMap map)
{
    MarkerOptions markerOpt1 = new MarkerOptions();
    markerOpt1.SetPosition(new LatLng(50.379444, 2.773611));
    markerOpt1.SetTitle("Vimy Ridge");

    var bmDescriptor = BitmapDescriptorFactory.DefaultMarker (BitmapDescriptorFactory.HueCyan);
    markerOpt1.InvokeIcon(bmDescriptor);

    map.AddMarker(markerOpt1);
}

I have write custom renders for Android native application markers and ios mkmapview how can i show up the information view when loading the map


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>