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

Description

A KML icon style object.

Specifies how icons for placemarks and photo overlays with a point geometry are drawn. Color is blended with the existing color of the icon.

Since
100.6
Inheritance diagram for AGSKMLIconStyle:
AGSKMLColorStyle AGSObject

Instance Methods

(instancetype) - initWithIcon:scale:
 

Class Methods

(instancetype) + KMLIconStyleWithIcon:scale:
 

Properties

AGSColorcolor
 
AGSKMLColorMode colorMode
 
double heading
 
AGSKMLImageCoordinatehotSpot
 
AGSKMLIconicon
 
double scale
 

Method Documentation

◆ initWithIcon:scale:

- (instancetype) initWithIcon: (nullable AGSKMLIcon *)  icon
scale: (double)  scale 

Creates an icon style with the specified icon and scale.

An icon with an incorrect or inaccessible URL will result in a red cross icon being used.

Parameters
iconIcon for drawing the point placemarks. If nil is passed, the default yellow pushpin icon will be used.
scaleScale of the icon.
Since
100.6

◆ KMLIconStyleWithIcon:scale:

+ (instancetype) KMLIconStyleWithIcon: (nullable AGSKMLIcon *)  icon
scale: (double)  scale 

Creates an icon style with the specified icon and scale.

An icon with an incorrect or inaccessible URL will result in a red cross icon being used.

Parameters
iconIcon for drawing the point placemarks. If nil is passed, the default yellow pushpin icon will be used.
scaleScale of the icon.
Since
100.6

Property Documentation

◆ color

- (AGSColor*) color
readwritenonatomicstronginherited

The color.

Since
100.6

◆ colorMode

- (AGSKMLColorMode) colorMode
readwritenonatomicassigninherited

The color mode.

Since
100.6

◆ heading

- (double) heading
readwritenonatomicassign

The direction in decimal degrees. Values range from 0 (North) to 360 degrees. The default value is 0.

Since
100.6

◆ hotSpot

- (AGSKMLImageCoordinate*) hotSpot
readwritenonatomicstrong

The position within the icon that is anchored to the point specified in the placemark.

Since
100.6

◆ icon

- (AGSKMLIcon*) icon
readwritenonatomicstrong

The icon to be used by the placemark.

If nil is set, the default yellow pushpin icon will be used. An icon with an incorrect or inaccessible URL will result in a red cross icon being used.

Since
100.6

◆ scale

- (double) scale
readwritenonatomicassign

The scale factor that should be applied to the rendered icon.

Since
100.6