Skip to content

feat(MarkerView): add priority, minZoom, maxZoom and allowZElevate - #4394

Merged
mfazekas merged 1 commit into
mainfrom
feat/markerview-options
Oct 25, 2026
Merged

mfazekas merged 1 commit into
mainfrom
feat/markerview-options

Conversation

@mfazekas

@mfazekas mfazekas commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Added priority, minZoom, maxZoom and allowZElevate to MarkerView. They map 1:1 to ViewAnnotationOptions on both platforms: iOS priority / minZoom / maxZoom / allowZElevate, Android ViewAnnotationOptions.Builder.priority(Long) / minZoom(Float) / maxZoom(Float) / allowZElevate(Boolean). Min SDK is 11.10 (allowZElevate 11.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

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/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:

  1. priority: two markers at the same coordinate with allowOverlap off. Only the one with the higher priority is shown, and toggling the priorities swaps red and blue.
  2. minZoom={16}: the marker is visible at z17 and hidden at z15.5.
  3. 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.
4394-zoom15 5-minZoom-marker-hidden
4394-zoom17-minZoom-marker-visible

@mfazekas
mfazekas merged commit 3e4965e into main Oct 25, 2026
10 checks passed
@mfazekas
mfazekas deleted the feat/markerview-options branch October 25, 2026 15:39
@hazel-wl hazel-wl mentioned this pull request Dec 1, 2026
8 tasks done

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant