setHome()
Sets the home coordinate within the map.
Synopsis
void setHome(float lat, float lon, int zoom = 1050)
void setHome(string coordinate, int zoom = 1050)
Parameter
Parameter | Description |
---|---|
lat | Latitude |
lon | Longitude |
zoom | Height within the map |
coordinate | Latitude and Longitude as string, see coordinate conversion. |
Description
The function sets the home coordinate within the map. The home point can be directly accessed via the navigation interface, see Navigation
The home coordinate is not set by default.
Example
Sets the current view as Home, e.g. from inside the Initialize script of the Widget.
this.setHome(this.latitude, this.longitude, this.altitude);
Assignment
See also