CesiumGS/cesium

Control available scene modes in SceneModePicker

Open

#8,005 opened on 2019年7月16日

GitHub で見る
 (9 comments) (1 reaction) (0 assignees)JavaScript (3,324 forks)batch import
category - widgetsgood first issuetype - enhancement

Repository metrics

Stars
 (11,758 stars)
PR merge metrics
 (平均マージ 15d 12h) (30d で 23 merged PRs)

説明

The BaseLayerPicker allows you to pass an array of which imagery layers should be available. It would be nice if the SceneModePicker had a similar option.

This was requested on the forum. Currently it's hardcoded to show all 3. I think it should be easy to add an option to control this. I think you'd need to edit https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Widgets/SceneModePicker/SceneModePicker.js and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Widgets/SceneModePicker/SceneModePickerViewModel.js.

コントリビューターガイド