The QtPositioning global object provides useful functions for working with location-based types in QML. 更多...
| import 语句: |
import QtPositioning
|
import QtPositioning Item { property var coordinate: QtPositioning.coordinate(-27.5, 153.1) }
|
geoCircle circle () |
Constructs an invalid geoCircle .
另请参阅 geoCircle .
构造 geoCircle centered at center with a radius of radius meters.
|
point coordToMercator ( coordinate coord ) |
Converts a coordinate coord into a mercator coordinate and returns it.
另请参阅 mercatorToCoord .
|
coordinate coordinate () |
Constructs an invalid coordinate.
|
coordinate coordinate ( real latitude , real longitude , real altitude ) |
Constructs a coordinate with the specified latitude , longitude 和可选 altitude . Both latitude and longitude must be valid, otherwise an invalid coordinate is returned.
另请参阅 coordinate .
|
coordinate mercatorToCoord ( point mercator ) |
转换 mercator coordinate into a latitude-longitude coordinate.
另请参阅 coordToMercator .
|
geoPath path () |
Constructs an empty geoPath .
另请参阅 geoPath .
|
geoPath path ( list < coordinate > coordinates , real width ) |
构造 geoPath from coordinates and width.
另请参阅 geoPath .
|
geoPolygon polygon () |
Constructs an empty polygon.
另请参阅 geoPolygon .
|
geoPolygon polygon ( list < coordinate > coordinates ) |
Constructs a polygon from coordinates.
另请参阅 geoPolygon .
|
geoPolygon polygon ( list < coordinate > perimeter , list < list < coordinate >> holes ) |
Constructs a polygon from coordinates for perimeter and inner holes.
另请参阅 geoPolygon .
|
geoRectangle rectangle () |
Constructs an invalid geoRectangle .
另请参阅 geoRectangle .
|
geoRectangle rectangle ( list < coordinate > coordinates ) |
构造 geoRectangle from the list of coordinates, the returned list is the smallest possible containing all the coordinates.
另请参阅 geoRectangle .
|
geoRectangle rectangle ( coordinate topLeft , coordinate bottomRight ) |
构造 geoRectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomRight .
另请参阅 geoRectangle .
|
geoRectangle rectangle ( coordinate center , real width , real height ) |
构造 geoRectangle centered at center with a width of width degrees and a hight of height 度。
另请参阅 geoRectangle .
|
geoShape shape () |
Constructs an invalid geoShape .
另请参阅 geoShape .
转换 shape 到 geoCircle .
另请参阅 geoCircle .
转换 shape 到 geoPath .
另请参阅 geoPath .
|
geoPolygon shapeToPolygon ( geoShape shape ) |
转换 shape to a polygon.
另请参阅 geoPolygon .
|
geoRectangle shapeToRectangle ( geoShape shape ) |
转换 shape 到 geoRectangle .
另请参阅 geoRectangle .