dotnet / dotnet/maui

MapPinHandler Does Not Return the Marker View on iOS

Open
#12,366 7 comments 0 reactions 0 assignees View on GitHub
area-controls-map platform/ios proposal/open s/triaged t/bug t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### Description

In iOS, handler.ToPlatform returns an annotation, but not an annotation view. It does not seem possible to modify the view (pin color for example) within the MapPinHandler. Android works fine.

### Steps to Reproduce

Add a .Mapper.AppendToMapping for MapPinHandler on a map page.
var annotation = handler.PlatformView (is a MKPointAnnotation).
No way to get the annotation view.

### Link to public reproduction project repository

None

### Version with bug

7.0 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

iOS

### Affected platform versions

11-16

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.