CesiumGS/cesium
Control available scene modes in SceneModePicker
Ouverte
#8 005 ouverte le 16 juil. 2019
category - widgetsgood first issuetype - enhancement
Métriques du dépôt
- Stars
- (11 758 étoiles)
- Métriques de merge PR
- (Merge moyen 15j 12h) (23 PRs mergées en 30 j)
Description
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.