mapbox-maps-android
mapbox-maps-android copied to clipboard
Setting maxZoom in AnnotationConfig for creating Annotation managers doesn't seem to work
Environment
- Maps SDK Version: 10.10.3
Observed behavior and steps to reproduce
here is my code: `
val circleAnnotationOptions: CircleAnnotationOptions = CircleAnnotationOptions()
.withPoint(Point.fromLngLat(51.416364, 35.771880))
.withCircleRadius(8.0)
.withCircleColor("#ee4e8b")
.withCircleStrokeWidth(2.0)
.withCircleStrokeColor("#ffffff")
val circleAnnotationManager = binding.mapView.annotations.createCircleAnnotationManager(
AnnotationConfig(
annotationSourceOptions = AnnotationSourceOptions(maxZoom = 16)
))
circleAnnotationManager.create(circleAnnotationOptions)
`
Expected behavior
By setting maxZoom, I expect the circle I have created, will not be shown before or maybe after this zoom level. But nothing really differs, and my circle is available in every zoom level. Also, I saw this behavior in other Annotatyion managares like PolyLine.
And may I ask why can't we have minZoom Level? Is there maybe a way to restrict our annotation visibility between zoom levels, like mapbox v9?