ArcGIS Runtime SDK for macOS: AGSKMLPlacemark Class Reference
ArcGIS Runtime SDK for macOS  100.5
AGSKMLPlacemark Class Reference

Description

An instance of this class represents a KML <Placemark> element which is a node with associated Geometry.

Since
100.4
Inheritance diagram for AGSKMLPlacemark:
AGSKMLNode <AGSGeoElement> AGSObject

Instance Methods

(instancetype) - NS_UNAVAILABLE
 

Class Methods

(instancetype) + KMLNode
 

Properties

NSMutableDictionary< NSString *, id > * attributes
 
AGSColor * balloonBackgroundColor
 
NSString * balloonContent
 
AGSEnvelopeextent
 
NSArray< AGSKMLGeometry * > * geometries
 
AGSGeometrygeometry
 
AGSKMLGraphicType graphicType
 
BOOL highlighted
 
NSString * name
 
NSString * nodeDescription
 
NSString * nodeID
 
AGSKMLNodeparentNode
 
NSError * refreshError
 
AGSKMLRefreshStatus refreshStatus
 
NSString * snippet
 
NSInteger snippetMaxLines
 
AGSImage * UXIcon
 
AGSColor * UXIconColor
 
NSInteger UXIconID
 
AGSKMLViewpointviewpoint
 
BOOL visible
 

Property Documentation

§ attributes

- (NSMutableDictionary<NSString*,id>*) attributes
readrequirednonatomicstronginherited

A dictionary containing all the attributes. Attribute types supported are NSNull, NSString, NSDate, and NSNumber. Other attribute types will be ignored.

Since
100

§ balloonBackgroundColor

- (AGSColor*) balloonBackgroundColor
readnonatomicstronginherited

The KML node's balloon background color, which should be used when showing a popup.

Note
This color can be used for the UI "chrome" that presents the balloonContent, such as the border and background of a Callout.
Since
100.4

§ balloonContent

- (NSString*) balloonContent
readnonatomiccopyinherited

The content that should be displayed in a balloon popup of the KML node as HTML.

Since
100.4

§ extent

- (AGSEnvelope*) extent
readnonatomicstronginherited

The KML node's bounding extent.

Note
All coordinates in KML are expressed in latitude and longitude (using decimal degrees) and are in the WGS84 geographic coordinate system.
Since
100.4

§ geometries

- (NSArray<AGSKMLGeometry*>*) geometries
readnonatomiccopy

The geometries associated with this placemark.

Note
The array will only have one geometry for non-multi geometries.
Since
100.4

§ geometry

- (AGSGeometry*) geometry
readwritenonatomicstronginherited

The geometry that defines shape and location.

Since
100

§ graphicType

- (AGSKMLGraphicType) graphicType
readnonatomicassign

The type of the graphic in this KML placemark.

Since
100.4

§ highlighted

- (BOOL) highlighted
readwritenonatomicassigninherited

Indicates whether the KML node is highlighted. This controls whether the default style or an alternate 'highlighted' style (if present) is used for rendering the node.

Note
This is unrelated to the concept of selection in ArcGIS Runtime.
Since
100.4

§ name

- (NSString*) name
readnonatomiccopyinherited

The name of the KML node.

Since
100.4

§ nodeDescription

- (NSString*) nodeDescription
readnonatomiccopyinherited

The description of the KML node.

Since
100.4

§ nodeID

- (NSString*) nodeID
readnonatomiccopyinherited

The ID of the KML node.

Since
100.5

§ parentNode

- (AGSKMLNode*) parentNode
readnonatomicstronginherited

The KML node's parent or nil if the node is a root node.

Since
100.4

§ refreshError

- (NSError*) refreshError
readnonatomicstronginherited

The error that was encountered during the most recent KML node refresh operation. Will be nil if the operation succeeded. The refresh error changes can be monitored using Key-Value Observing (KVO).

Since
100.4

§ refreshStatus

- (AGSKMLRefreshStatus) refreshStatus
readnonatomicassigninherited

The refresh status of the KML node. The refresh status changes can be monitored using Key-Value Observing (KVO). Use this to update the node's properties and application UI. Please take following actions for different refresh statuses, AGSKMLRefreshStatusNone - No action required. AGSKMLRefreshStatusInProgress - Application may show an appropriate UI, such as a spinning wheel on top of the node's table of contents (TOC) icon to indicate in progress status and to restrict user interaction with the node. AGSKMLRefreshStatusCompleted - Read and update the node's properties and its children. The AGSKMLNetworkLink::childNodes changes can be monitored using Key-Value Observing (KVO). AGSKMLRefreshStatusFailed - Check refreshError to get the reason for failure and show the error message. Also, applications may show an appropriate UI cue such as a red X with the node's TOC icon to indicate the failed status.

Since
100.4

§ snippet

- (NSString*) snippet
readnonatomiccopyinherited

The KML node's snippet, if specified.

Note
A snippet is a short description that can optionally be specified for a KML Feature, either instead of or in addition to a full description.
Since
100.4

§ snippetMaxLines

- (NSInteger) snippetMaxLines
readnonatomicassigninherited

The maximum number of lines of snippet to be shown in the UI.

Note
If no snippet is specified for the node, a short description can be created by taking the first few lines of the description.
Since
100.4

§ UXIcon

- (AGSImage*) UXIcon
readnonatomicstronginherited

The KML node's UX icon. Use this icon to represent the KML node in the table of contents (TOC) or anywhere else you need to display the node in the UI. The icon changes can be monitored using Key-Value Observing (KVO).

Note
The icon can change during the lifetime of the node.
Since
100.4

§ UXIconColor

- (AGSColor*) UXIconColor
readnonatomicstronginherited

The color mask that can be used to blend the image associated with UXIcon. Pixels in the image are multiplied by this color channel-by-channel.

Note
When no icon is specified (UXIcon is nil), you can use the icon color to draw a placeholder image in the UI (for example, the TOC).
Runtime does not pre-tint the UXIcon; it is the application's responsibility to tint the image before displaying it.
Since
100.4

§ UXIconID

- (NSInteger) UXIconID
readnonatomicassigninherited

The ID of KML node's UX icon.

Since
100.4

§ viewpoint

- (AGSKMLViewpoint*) viewpoint
readnonatomicstronginherited

The KML node's viewpoint, or nil if no Camera or LookAt viewpoint is specified on the node. It specifies the vantage point for looking at the node. This can be used to show a particular node in the view (for example, if a user selected it in a TOC).

Note
You can convert from a KML viewpoint to a Runtime viewpoint in order to use it with a GeoView. See the guide documentation and samples for details.
Since
100.4

§ visible

- (BOOL) visible
readwritenonatomicassigninherited

Indicates whether the KML node is visible or not.

Note
In order for a node to be visible, the visibility of the node and all ancestors must be true. Changing the visibility of one node may affect the other nodes in the dataset's node hierarchy, including child nodes.
Since
100.4