ArcGIS Runtime SDK for iOS
100.15
|
A KML image coordinate object.
Instances of this class represent a KML image coordinate object as described in the OGC 2.3 specification, section 16.26.2 (https://docs.opengeospatial.org/is/12-007r2/12-007r2.html#1254).
It specifies an image coordinate system. The x and y values may each be specified in three different ways - as pixels (pixels), as fractions of the icon (fraction), or as inset pixels (insetPixels), which is an offset in pixels from the upper right corner of the icon. They may or may not be specified in a consistent manner - for example, x can be specified in pixels and y as a fraction.
Use the AGSKMLUnitsType
enumeration (either via the AGSKMLImageCoordinate::xUnits
and AGSKMLImageCoordinate::yUnits
properties or via the initWithX:y:xUnits:yUnits: (AGSKMLImageCoordinate)
constructor) to establish the KML image coordinate system. The AGSKMLUnitsTypePixels
and AGSKMLUnitsTypeInsetPixels
image coordinate systems are defined with device-independent pixels (DIPs).
Instance Methods | |
(instancetype) | - initWithX:y:xUnits:yUnits: |
Class Methods | |
(instancetype) | + KMLImageCoordinateWithX:y:xUnits:yUnits: |
Properties | |
double | x |
AGSKMLUnitsType | xUnits |
double | y |
AGSKMLUnitsType | yUnits |
- (instancetype) initWithX: | (double) | x | |
y: | (double) | y | |
xUnits: | (AGSKMLUnitsType) | xUnits | |
yUnits: | (AGSKMLUnitsType) | yUnits | |
Creates a KML image coordinate.
x | The x component of a point. Default is 0.5 . |
y | The y component of a point. Default is 0.5 . |
xUnits | Units in which the x value is specified. Default is AGSKMLUnitsTypeFraction . |
yUnits | Units in which the y value is specified. Default is AGSKMLUnitsTypeFraction . |
+ (instancetype) KMLImageCoordinateWithX: | (double) | x | |
y: | (double) | y | |
xUnits: | (AGSKMLUnitsType) | xUnits | |
yUnits: | (AGSKMLUnitsType) | yUnits | |
Creates a KML image coordinate.
x | The x component of a point. Default is 0.5 . |
y | The y component of a point. Default is 0.5 . |
xUnits | Units in which the x value is specified. Default is AGSKMLUnitsTypeFraction . |
yUnits | Units in which the y value is specified. Default is AGSKMLUnitsTypeFraction . |
|
readnonatomicassign |
The x component of a point. The default value is 1.0
.
|
readnonatomicassign |
Units in which the x value is specified. The default value is AGSKMLUnitsTypeFraction
.
|
readnonatomicassign |
The y component of a point. The default value is 1.0
.
|
readnonatomicassign |
Units in which the y value is specified. The default value is AGSKMLUnitsTypeFraction
.