ArcGIS Runtime SDK for iOS: AGSKMLImageCoordinate Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSKMLImageCoordinate Class Reference

Description

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).

Since
100.6
Inheritance diagram for AGSKMLImageCoordinate:
AGSObject

Instance Methods

(instancetype) - initWithX:y:xUnits:yUnits:
 

Class Methods

(instancetype) + KMLImageCoordinateWithX:y:xUnits:yUnits:
 

Properties

double x
 
AGSKMLUnitsType xUnits
 
double y
 
AGSKMLUnitsType yUnits
 

Method Documentation

◆ initWithX:y:xUnits:yUnits:

- (instancetype) initWithX: (double)  x
y: (double)  y
xUnits: (AGSKMLUnitsType xUnits
yUnits: (AGSKMLUnitsType yUnits 

Creates a KML image coordinate.

Parameters
xThe x component of a point. Default is 0.5.
yThe y component of a point. Default is 0.5.
xUnitsUnits in which the x value is specified. Default is AGSKMLUnitsTypeFraction.
yUnitsUnits in which the y value is specified. Default is AGSKMLUnitsTypeFraction.
Since
100.6

◆ KMLImageCoordinateWithX:y:xUnits:yUnits:

+ (instancetype) KMLImageCoordinateWithX: (double)  x
y: (double)  y
xUnits: (AGSKMLUnitsType xUnits
yUnits: (AGSKMLUnitsType yUnits 

Creates a KML image coordinate.

Parameters
xThe x component of a point. Default is 0.5.
yThe y component of a point. Default is 0.5.
xUnitsUnits in which the x value is specified. Default is AGSKMLUnitsTypeFraction.
yUnitsUnits in which the y value is specified. Default is AGSKMLUnitsTypeFraction.
Since
100.6

Property Documentation

◆ x

- (double) x
readnonatomicassign

The x component of a point. The default value is 1.0.

Since
100.6

◆ xUnits

- (AGSKMLUnitsType) xUnits
readnonatomicassign

Units in which the x value is specified. The default value is AGSKMLUnitsTypeFraction.

Since
100.6

◆ y

- (double) y
readnonatomicassign

The y component of a point. The default value is 1.0.

Since
100.6

◆ yUnits

- (AGSKMLUnitsType) yUnits
readnonatomicassign

Units in which the y value is specified. The default value is AGSKMLUnitsTypeFraction.

Since
100.6