-
rotation
Number
正北相對於視圖頂部的旋轉度數。
默認值:0
例子:
// due north is rotated 90 degrees, pointing to the right side of the view viewpoint.rotation = 90;
// due north is rotated 180 degrees, pointing to the bottom of the view viewpoint.rotation = 180;
// due north is rotated 270 degrees, pointing to the left side of the view viewpoint.rotation = 270;
// due north is rotated 0 degrees, pointing to the top of the view (the default) viewpoint.rotation = 0; // 360 or multiple of 360 (e.g. 720) works here as well.
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/Viewpoint"], (Viewpoint) => { /* code goes here */ });
ESM:
import Viewpoint from "@arcgis/core/Viewpoint";
類:
esri/Viewpoint
繼承: Viewpoint > Accessor
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
Viewpoint.rotation
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS View pointer-move事件用法及代碼示例
- JavaScript ArcGIS View.popup用法及代碼示例
- JavaScript ArcGIS View.tryFatalErrorRecovery用法及代碼示例
- JavaScript ArcGIS View.when用法及代碼示例
- JavaScript ArcGIS View layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS View.timeExtent用法及代碼示例
- JavaScript ArcGIS ViewAnimation.when用法及代碼示例
- JavaScript ArcGIS View.whenLayerView用法及代碼示例
- JavaScript ArcGIS View immediate-click事件用法及代碼示例
- JavaScript ArcGIS ViewAnimation用法及代碼示例
- JavaScript ArcGIS View double-click事件用法及代碼示例
- JavaScript ArcGIS View click事件用法及代碼示例
- JavaScript ArcGIS View用法及代碼示例
- JavaScript ArcGIS View.graphics用法及代碼示例
- JavaScript ArcGIS View.fatalError用法及代碼示例
- JavaScript ArcGIS View.navigation用法及代碼示例
- JavaScript ArcGIS View.input用法及代碼示例
- JavaScript ArcGIS View.destroy用法及代碼示例
- JavaScript ArcGIS View key-down事件用法及代碼示例
- JavaScript ArcGIS View.on用法及代碼示例
- JavaScript ArcGIS View drag事件用法及代碼示例
- JavaScript ArcGIS View hold事件用法及代碼示例
- JavaScript ArcGIS View mouse-wheel事件用法及代碼示例
- JavaScript ArcGIS View.container用法及代碼示例
- JavaScript ArcGIS View.ui用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 Viewpoint.rotation。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。