CesiumGS/cesium

Control available scene modes in SceneModePicker

Aperta

#8005 aperta il 16 lug 2019

 (9 commenti) (1 reazione) (0 assegnatari)JavaScript (3324 fork)batch import
category - widgetsgood first issuetype - enhancement

Metriche repository

Star
 (11.758 stelle)
Metriche merge PR
 (Merge medio 15g 12h) (23 PR mergiate in 30 g)

Descrizione

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.

Guida contributor