Xamarin.forms.googlemaps: best way to size custom pins

Created on 14 Aug 2016  路  3Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

What is the best way to show image size for pins in cross development ?

scale or create all kind of images with different size ? Anyone has some example for me...

discussion duplicate

All 3 comments

See #40 Why custom pin icon in iOS bigger than Android?
I don't understand size calculation mechanism via BitmapDescriptorFactory.FromStream.

Workaround is using BitmapDescriptorFactory.FromBundle("image01.png").
In this case, you can prepare image01.png each platform.

For more information, please see Custom marker support(v1.4.0-) - Comparison with Xamarin.Forms.Maps 路 amay077/Xamarin.Forms.GoogleMaps Wiki

is there a way to use the resources instead of the assets for android ? that way you can use it for different screen sizes (hdpi/xhdpi and so on)

I close this issue because this is duplicate of #40.
Please check #40 after this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LukasThijs picture LukasThijs  路  7Comments

soile1991 picture soile1991  路  5Comments

mammadkoma picture mammadkoma  路  6Comments

hieumoscow picture hieumoscow  路  5Comments

mtsrdr picture mtsrdr  路  6Comments