From 3a881d67d31a8ea89268683ff7ce372db4f90910 Mon Sep 17 00:00:00 2001 From: U29 Date: Mon, 21 Oct 2024 19:08:35 +0900 Subject: [PATCH] Add optional rotation property to RView type --- src/RMap.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RMap.tsx b/src/RMap.tsx index d5941047..f5c7ff14 100644 --- a/src/RMap.tsx +++ b/src/RMap.tsx @@ -15,6 +15,8 @@ export type RView = { center: Coordinate; /** Zoom level, 0 is the whole world, 28 is maximum resolution */ zoom: number; + /** Optional The initial rotation for the view in radians (positive rotation clockwise, 0 means North). */ + rotation?: number; /** * Optional resolution in meters per pixel * @@ -135,6 +137,7 @@ export default class RMap extends RlayersBase> projection: props.projection, center: props.initial.center, zoom: props.initial.resolution === undefined ? props.initial.zoom : undefined, + rotation: props.initial.rotation, resolution: props.initial.resolution, extent: props.extent, minResolution: props.minResolution,