Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
feat: camera limiter (#87)
Browse files Browse the repository at this point in the history
* Edit manifest file

* Change default values

* Change label names

* Fix manifest bug

* Edit description

* Make ids unique

* Make ids unique

* Change descriptions

* Add modifications

Co-authored-by: basel.issmail <basel.issmail@gmail.com>
  • Loading branch information
issmail-basel and Basel-Issmail authored Dec 15, 2021
1 parent 91f9b39 commit 63c5823
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkg/builtin/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,38 @@ extensions:
type: string
title: Cesium Ion API access token
description: Cesium Ion account users may use their personal API keys to be able to use their Cesium Ion assets(tile data, 3D data, etc) with their project.
- id: cameraLimiter
title: Camera Limiter
description: Set the camera limiting box.
fields:
- id: cameraLimitterEnabled
type: bool
title: Enable
defaultValue: false
description: Enable camera limiter.
- id: cameraLimitterShowHelper
type: bool
title: Show Helper
defaultValue: false
description: Display the limiter boundaries.
- id: cameraLimitterTargetArea
type: camera
title: Target max height
description: The base position of the camera movement range. This position is the center point of the limit box in the horizontal and depth directions, and is the maximum height of the movable range. The camera will not be able to zoom out beyond the height specified here.
- id: cameraLimitterTargetWidth
type: number
title: Target width
description: Specifies the width (longitude direction) of the box that represents the limiter boundaries.
min: 5
defaultValue: 1000000
suffix: m
- id: cameraLimitterTargetLength
type: number
title: Target length
description: Specifies the depth (latitude direction) of the box that represents the limiter boundaries.
min: 5
defaultValue: 1000000
suffix: m
- id: tiles
title: Tiles
description: You may change the look of the Earth by obtaining map tile data and setting it here.
Expand Down
19 changes: 19 additions & 0 deletions pkg/builtin/manifest_ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,25 @@ extensions:
ion:
title: Cesium Icon APIアクセストークン
description: 自身のCesium IonアカウントからAPIキーを発行し、ここに設定します。Cesium Ionのアセット(タイルデータ、3Dデータなど)の使用が可能になるため、設定を推奨します。
cameraLimiter:
title: カメラ範囲制限
description: カメラの移動できる範囲を制限することができます。
fields:
cameraLimitterEnabled:
title: 有効
description: カメラの範囲制限を有効にします。
cameraLimitterShowHelper:
title: 範囲を表示
description: カメラの移動範囲を表すボックスを表示します。
cameraLimitterTargetArea:
title: 基準位置
description: 移動範囲の基準となる位置です。この位置が制限範囲を表すボックスの横方向と奥行き方向の中心点となり、かつ移動可能範囲における最大の高さとなります。ここで指定した高さ以上にカメラをズームアウトすることができなくなります。
cameraLimitterTargetWidth:
title: 軽度の範囲
description: 制限範囲を表すボックスの幅(経度の方向)を指定します。
cameraLimitterTargetLength:
title: 緯度の範囲
description: 制限範囲を表すボックスの奥行き(緯度の方向)を指定します。
tiles:
title: タイル
description: 手持ちのタイルデータを使用し、地球上に表示することができます。
Expand Down

0 comments on commit 63c5823

Please sign in to comment.