wierd maxZoom behavior
sebqq opened this issue · 2 comments
sebqq commented
Hello guys. I was expecting that if my map has maxZoomLevel
limited lets say at 10, then I need to set maxZoom
attribute at 9, because the maxZoom
should be the maximum zoom level where clusters are generated. However, even if I set maxZoomLevel
to 10 and maxZoom
to 8 the clusters are generated even when I hit the zoom limit of the map. But with maxZoom
set to 7 the clusters disappears from the map too early. Enclosing my Map's code:
<ClusteredMapView
ref={mapRef}
style={style || styles.map}
data={markers}
radius={
mapRegion.longitudeDelta < 4
? CLUSTER_RADIUS_SM
: CLUSTER_RADIUS_LG
}
initialRegion={mapRegion}
onRegionChangeComplete={onRegionChangeComplete}
renderMarker={this.renderMarker}
renderCluster={this.renderCluster}
mapType={Platform.OS == "android" ? "none" : "standard"}
minZoomLevel={1}
maxZoomLevel={10}
minZoom={1}
maxZoom={7}
onMarkerPress={this.onMarkerPressed}
pitchEnabled={false}
rotateEnabled={false}
mapPadding={mapPadding}
/>
Thanks for any advice!
leolusoli commented
mohmdalfaha commented
Hi, Can you give me hints on how to detect if maxZoom level has been reached ?