-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
The view init is hard coded and can not pass the rotation property to the view.
constructor(props: Readonly<RMapProps>) {
super(props);
this.target = React.createRef();
this.ol = new Map({
controls: props.noDefaultControls ? [] : undefined,
interactions: props.noDefaultInteractions ? [] : undefined,
view: new View({
projection: props.projection,
center: props.initial.center,
zoom: props.initial.resolution === undefined ? props.initial.zoom : undefined,
resolution: props.initial.resolution,
extent: props.extent,
minResolution: props.minResolution,
maxResolution: props.maxResolution,
constrainResolution: props.constrainResolution,
minZoom: props.minZoom,
maxZoom: props.maxZoom,
enableRotation: props.enableRotation,
constrainRotation: props.constrainRotation
})
});
if (this.props.view) this.ol.on('moveend', this.updateView);
}Adding the rotation property to RView would be nice
Metadata
Metadata
Assignees
Labels
No labels