Repository navigation
feat(MarkerView): add priority, minZoom, maxZoom and allowZElevate - #4394
Merged
Merged
Conversation
3 of 8 tasks
8 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added
priority,minZoom,maxZoomandallowZElevatetoMarkerView. They map 1:1 toViewAnnotationOptionson both platforms: iOSpriority/minZoom/maxZoom/allowZElevate, AndroidViewAnnotationOptions.Builder.priority(Long)/minZoom(Float)/maxZoom(Float)/allowZElevate(Boolean). Min SDK is 11.10 (allowZElevate11.6), so they work on the current default 11.23.1. When a prop is omitted it isn't sent, so the native defaults apply.A new example,
Annotations/MarkerViewPlacement, shows all four props.Checklist
CONTRIBUTING.mdyarn generatein the root folder/exampleapp./example)Screenshot OR Video
I tested the new example on the iOS simulator (iPhone 17 Pro, iOS 26.5) and on an Android emulator (Pixel 6), using SDK 11.23.1. Both platforms behaved the same:
priority: two markers at the same coordinate withallowOverlapoff. Only the one with the higher priority is shown, and toggling the priorities swaps red and blue.minZoom={16}: the marker is visible at z17 and hidden at z15.5.allowZElevate: on a fill-extrusion building at z17 and pitch 45, the marker sits on the roof. With the prop off it sits at street level, about 300 px lower on screen.One thing I noticed while testing on iOS: at z15.5 the marker stayed at ground level even with the prop on, and the rooftop placement only showed at z17. That comes from the native SDK, not from this change.

