xamarin.forms - Xamarin Forms Maps - Custom Pin Images -


is there way change image of pins in xamarin forms maps. want make pin custom image, if has done natively, can give me simple example of it. thank you.

to coming later, supported in xamarin forms.

in essence need create custom map class in pcl or shared code inherits xamarin forms map , create custom renderer in each of platforms' projects.

those custom renderers different each platform, dealing specifics of rendering icons , pop information shown when click on pin particular platform. not obliged create custom renderer platforms, don't normal map displayed.

this documented in custom renderers | customizing map section of xamarin forms developers guide. documentation walks through creating custom renderer android, ios , uwp , explains code needed in detail. there's lot of it, won't reproduce here. there accompanying sample solution here.

one point worth noting if trying reproduce code in own project need add images in various drawable folders in projectname\droid\resources directory, , 2 axml files in layout directory.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -