CesiumGS/cesium

Control available scene modes in SceneModePicker

Aberta

#8.005 aberto em 16 de jul. de 2019

 (9 comentários) (1 reação) (0 responsável)JavaScript (3.324 forks)batch import
category - widgetsgood first issuetype - enhancement

Métricas do repositório

Stars
 (11.758 estrelas)
Métricas de merge de PR
 (Mesclagem média 15d 12h) (23 fundiu PRs em 30d)

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.

Guia do colaborador