Replies: 5 comments 3 replies
-
|
The Pin is part of the Xamarin/MAUI specific implementation. Since we are now supporting ten platforms the focus is on building out the cross platform functionality. So it is more future proof work with a PointFeature with CalloutStyle. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply. |
Beta Was this translation helpful? Give feedback.
-
|
I tried this but there is no way to know if the user tapped on the pin or the callout: mapInfo.Feature?.Styles always contains 2 elements: the CalloutStyle and ImageStyle whether the user clicked on the pin or the callout. But I don't know how to convert the metric coordinates of feature.Point to pixel coordinates on the map. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your reply. |
Beta Was this translation helpful? Give feedback.
-
|
No problem, this way I solved it, thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating my app from Xamarin to Maui and Mapsui 5.00.
In Xamarin, I created a custom pin class in which I drew the callout and handled taps (because it didn't work well on iOS, see #1370).
I'd like the following behavior:
If the pin is tapped, the corresponding callout opens/closes, but I'd like to have control over whether the user taps the callout.
What's the best solution for this?
Pin + Callout or PointFeature + CalloutStyle?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions