Open Stophface opened 1 month ago
Mapbox
10.17.0
0.73.8
iOS
@rnmapbox/maps
10.1.24
import React from 'react'; import { MapView, ShapeSource, LineLayer, Camera, } from '@rnmapbox/maps'; const aLine = { type: 'LineString', coordinates: [ [-74.00597, 40.71427], [-74.00697, 40.71527], ], }; class BugReportExample extends React.Component { render() { return ( <MapView projection={'globe'} style={{flex: 1}}> <Camera maxZoomLevel={22} centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} /> <ShapeSource id="idStreetLayer" shape={aLine}> <LineLayer id="idStreetLayer" /> </ShapeSource> </MapView> ); } }
THe maxZoomLevel prop from <Camera /> gets igonored. No matter what I fill in here, the ability to zoom out is not affected by it.
maxZoomLevel
<Camera />
I expect the maxZoomLevel prop to affect the ability to (max) zoom.
No response
Mapbox Implementation
Mapbox
Mapbox Version
10.17.0
React Native Version
0.73.8
Platform
iOS
@rnmapbox/maps
version10.1.24
Standalone component to reproduce
Observed behavior and steps to reproduce
THe
maxZoomLevel
prop from<Camera />
gets igonored. No matter what I fill in here, the ability to zoom out is not affected by it.Expected behavior
I expect the
maxZoomLevel
prop to affect the ability to (max) zoom.Notes / preliminary analysis
No response
Additional links and references
No response