![]() |
Qt 6.x
The Qt SDK
|
\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation More...
Public Attributes | |
QVector2D | position |
\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation
The MapCircle type displays a geographic circle on a Map.
The MapCircle type displays a geographic circle on a Map, which consists of all points that are within a set distance from one central point. Depending on map projection, a geographic circle may not always be a perfect circle on the screen: for instance, in the Mercator projection, circles become ovoid in shape as they near the poles. To display a perfect screen circle around a point, use a MapQuickItem containing a relevant Qt Quick type instead.
By default, the circle is displayed as a 1 pixel black border with no fill. To change its appearance, use the \l {color}, \l {border.color} and \l {border.width} properties.
Internally, a MapCircle is implemented as a many-sided polygon. To calculate the radius points it uses a spherical model of the Earth, similar to the atDistanceAndAzimuth method of the \l {coordinate} type. These two things can occasionally have implications for the accuracy of the circle's shape, depending on position and map projection.
Definition at line 103 of file qdeclarativecirclemapitem.cpp.
QVector2D Vertex::position |
Definition at line 105 of file qdeclarativecirclemapitem.cpp.