CesiumGS/cesium

Control available scene modes in SceneModePicker

Offen

#8.005 geöffnet am 16.07.2019

 (9 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (3.324 Forks)batch import
category - widgetsgood first issuetype - enhancement

Repository-Metriken

Stars
 (11.758 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 15T 12h) (23 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide