amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 349 forks source link

Pin bindings #529

Closed mkopljar closed 5 years ago

mkopljar commented 6 years ago

SUMMARY

Adding many pins individually to a map takes a long time because of ObservableCollection.Add method is a bottleneck. Is there a way to improve ? Suggestions: can pin source be anything else but ObservableCollection ? Say, List ? Can bindings be enforced in ViewModel ?

DETAILS

// How to use of your requested feature

PLATFORMS

amay077 commented 6 years ago

Maybe you're from Xamarin.Forms.GoogleMaps.Bindings.

Xamarin.Forms.GoogleMaps is simply wrapper of Google Maps SDK for Android.

Map.Pins.Add calls GoogleMap.addMarker directly.

This means, if you feel slowly for adding pin then it is Google Maps SDK for Android's limitation.

I'm not sure to how to improve speed.

amay077 commented 5 years ago

I supported ItemsSource/ItemTemplate for Xamarin.Forms.GoogleMaps.