Skip To Content ArcGIS for Developers Sign In Dashboard

KmlUnitsType Class


A KML units type object. More...

Since: Esri::ArcGISRuntime 100.7

Detailed Description

A KML units type object.

Use the KmlUnitsType enumeration via the KmlImageCoordinate::KmlImageCoordinate(double x, double y, KmlUnitsType xUnits, KmlUnitsType yUnits, QObject* parent) constructor to establish the KML image coordinate system. Values of type fraction must be between 0.0 and 1.0. Values below 0.0 will be set to 0.0, and values above 1.0 will be set to 1.0. If a non-integral number is specified with a unit type of pixels or insetPixels, it will be rounded down to a whole number (e.g. 2.243 will be rounded to 2.0).

The KmlUnitsType can be one of:

KmlUnitsType::Fraction (0)Fraction is the default value. Treat the x/y value as a fraction of the width/height.
KmlUnitsType::Pixels (1)Treat the x/y value as an integral number of pixels.
KmlUnitsType::InsetPixels (2)Treat the x/y value as an integral number of pixels from the top right corner.

Feedback on this topic?