Maui.GoogleMaps icon indicating copy to clipboard operation
Maui.GoogleMaps copied to clipboard

how can I use fontimagesource as the source for my pins?

Open michaelonz opened this issue 8 months ago • 1 comments

SUMMARY

I would like to use fontimageSource for the source of my images for my pins

eg:

ImageSource myicon = new FontImageSource() { FontFamily = DeviceInfo.Platform == DevicePlatform.iOS ? "weathericons" : "weathericons.ttf#", Glyph = "\uf019", Size = MapIconSize, Color = Color.Red };

Once I have myicon above I would like to do something like:

Pin newPin = new Pin() { Position = center, Label = "My red icon ", Type = PinType.Generic, Icon = BitmapDescriptorFactory.FromImageSource(my icon) }

Is there anyway to do this - I have spend all day today trying to find a way of using a imagesource but have not been able to work it out?

DETAILS

Description above

PLATFORMS

  • [X] Android
  • [X ] iOS

michaelonz avatar May 04 '25 05:05 michaelonz

I don’t think it is possible, however you are always welcome to submit a pr in case u find a way how to do it

themronion avatar May 04 '25 15:05 themronion