centerOn()

Changes the map view to stated coordinates.

Synopsis

void centerOn(float lat, float lon, float alt = 0.0, bool animated = true)

void centerOn(string coordinate, float alt = 0.0, bool animated = true)

Parameter

Parameter Description
lat Latitude
lon Longitude
alt Altitude
animated Defines if the change of view should be animated with a scrolling effect.
coordinate Longitude and Latitude as string, see coordinate conversion.

Description

The function sets the current viewed map area to the stated coordinates.

Assignment

Maps Widget