You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`BaseLayerPicker` has been extended to support terrain selection.
27
+
* The `BaseLayerPicker` constructor function now takes the container element and an options object instead of a CentralBody and ImageryLayerCollection.
28
+
* The `BaseLayerPickerViewModel` constructor function now takes an options object instead of a CentralBody and ImageryLayerCollection.
*`BaseLayerPickerViewModel.imageryLayers`has been removed and replaced with `BaseLayerPickerViewModel.centralBody`
34
+
* See [#1607](https://github.com/AnalyticalGraphicsInc/cesium/pull/1607) for full details.
26
35
*`TimeIntervalCollection.clear` renamed to `TimeIntervalColection.removeAll`
27
36
*`Context` is now private
28
37
* Removed `Scene.context`: replaced by adding `drawingBufferWidth`, `drawingBufferHeight`, `maximumAliasedLineWidth` properties and `createTextureAtlas` function to `Scene`.
Copy file name to clipboardexpand all lines: Source/Widgets/BaseLayerPicker/BaseLayerPicker.js
+83-41
Original file line number
Diff line number
Diff line change
@@ -23,23 +23,27 @@ define([
23
23
* <br />BaseLayerPicker with its drop-panel open.
24
24
* </span>
25
25
* <br /><br />
26
-
* The BaseLayerPicker is a single button widget that displays a panel of available imagery
27
-
* providers. When an item is selected, the corresponding imagery layer is created and inserted
28
-
* as the base layer of the imagery collection; removing the existing base. Each item in the
29
-
* available providers list contains a name, a representative icon, and a tooltip to display more
30
-
* information when hovered. The list is initially empty, and must be configured before use, as
31
-
* illustrated in the below example.
26
+
* The BaseLayerPicker is a single button widget that displays a panel of available imagery and
27
+
* terrain providers. When imagery is selected, the corresponding imagery layer is created and inserted
28
+
* as the base layer of the imagery collection; removing the existing base. When terrain is selected,
29
+
* it replaces the current terrain provider. Each item in the available providers list contains a name,
30
+
* a representative icon, and a tooltip to display more information when hovered. The list is initially
31
+
* empty, and must be configured before use, as illustrated in the below example.
32
32
*
33
33
* @alias BaseLayerPicker
34
34
* @constructor
35
35
*
36
36
* @param {Element} container The parent HTML container node for this widget.
37
-
* @param {ImageryLayerCollection} imageryLayers The imagery layer collection to use.
37
+
* @param {CentralBody} options.centralBody The CentralBody to use.
38
+
* @param {ProviderViewModel[]} [options.imageryProviderViewModels=[]] The array of ProviderViewModel instances to use for imagery.
39
+
* @param {ProviderViewModel} [options.selectedImageryProviderViewModel] The view model for the current base imagery layer, if not supplied the first available imagery layer is used.
40
+
* @param {ProviderViewModel[]} [options.terrainProviderViewModels=[]] The array of ProviderViewModel instances to use for terrain.
41
+
* @param {ProviderViewModel} [options.selectedTerrainProviderViewModel] The view model for the current base terrain layer, if not supplied the first available terrain layer is used.
38
42
*
39
43
* @exception {DeveloperError} Element with id "container" does not exist in the document.
40
44
*
45
+
* @see TerrainProvider
41
46
* @see ImageryProvider
42
-
* @see ImageryProviderViewModel
43
47
* @see ImageryLayerCollection
44
48
*
45
49
* @example
@@ -49,8 +53,8 @@ define([
49
53
*
50
54
* //Create the list of available providers we would like the user to select from.
51
55
* //This example uses 3, OpenStreetMap, The Black Marble, and a single, non-streaming world image.
0 commit comments