@JsType(isNative=true,
namespace="Cesium",
name="HomeButtonViewModel")
public class HomeButtonViewModel
extends Object
HomeButton| Modifier and Type | Field and Description |
|---|---|
Command |
command
Gets the
Command that is executed when the button is clicked. |
Number |
duration
Gets or sets the duration of the camera flight in seconds.
|
Scene |
scene
Gets the scene to control.
|
String |
tooltip
Gets or sets the tooltip.
|
| Constructor and Description |
|---|
HomeButtonViewModel(Scene scene,
Number duration)
The view model for
HomeButton. |
@JsProperty public Command command
Command that is executed when the button is clicked.@JsProperty public Number duration
@JsProperty public Scene scene
@JsProperty public String tooltip
@JsConstructor public HomeButtonViewModel(Scene scene, Number duration)
HomeButton.scene - The scene instance to use.duration - The duration of the camera flight in seconds. Optional.Copyright © 2019. All rights reserved.