The QtPositioning global object provides useful functions for working with location-based types in QML. More...
Import Statement: | import QtPositioning 6.4 |
Since: | Qt 5.2 |
import QtPositioning Item { property var coordinate: QtPositioning.coordinate(-27.5, 153.1) }
geocircle circle(coordinate center, real radius) |
Constructs a geocircle centered at center with a radius of radius meters.
|
Converts a coordinate coord into a mercator coordinate and returns it.
This method was introduced in Qt 5.12.
See also mercatorToCoord.
coordinate coordinate(real latitude, real longitude, real altitude) |
Constructs a coordinate with the specified latitude, longitude and optional altitude. Both latitude and longitude must be valid, otherwise an invalid coordinate is returned.
See also coordinate.
coordinate coordinate() |
Constructs an invalid coordinate.
|
Converts a mercator coordinate into a latitude-longitude coordinate.
This method was introduced in Qt 5.12.
See also coordToMercator.
|
Constructs a geopath from coordinates and width.
This method was introduced in Qt 5.9.
See also geopath.
|
|
Constructs a polygon from coordinates for perimeter and inner holes.
This method was introduced in Qt 5.12.
See also geopolygon.
|
|
georectangle rectangle(coordinate topLeft, coordinate bottomRight) |
Constructs a georectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomRight.
See also georectangle.
georectangle rectangle(coordinate center, real width, real height) |
Constructs a georectangle centered at center with a width of width degrees and a hight of height degrees.
See also georectangle.
georectangle rectangle() |
Constructs an invalid georectangle.
See also georectangle.
|
|