Mapbox Implementation
Mapbox
Mapbox Version
11.15.0
React Native Version
0.83.1
React Native Architecture
New Architecture (Fabric/TurboModules)
Platform
iOS
@rnmapbox/maps version
10.2.10
Standalone component to reproduce
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 pitchEnabled maxPitch={45} style={{flex: 1}}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<ShapeSource id="idStreetLayer" shape={aLine}>
<LineLayer id="idStreetLayer" />
</ShapeSource>
</MapView>
);
}
}
Observed behavior and steps to reproduce
Pitching is unrestricted just as if the prop has not been set.
Expected behavior
The max pitch should stop as soon as maxPitch number of degrees is reached.
Notes / preliminary analysis
Haven't tested on Android yet, probably the same issue there?
Additional links and references
No response
Mapbox Implementation
Mapbox
Mapbox Version
11.15.0
React Native Version
0.83.1
React Native Architecture
New Architecture (Fabric/TurboModules)
Platform
iOS
@rnmapbox/mapsversion10.2.10
Standalone component to reproduce
Observed behavior and steps to reproduce
Pitching is unrestricted just as if the prop has not been set.
Expected behavior
The max pitch should stop as soon as maxPitch number of degrees is reached.
Notes / preliminary analysis
Haven't tested on Android yet, probably the same issue there?
Additional links and references
No response