ArcGIS Runtime SDK for iOS: AGSKMLPlacemark.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSKMLPlacemark.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSKMLNode.h>
29 #import <ArcGIS/AGSGeoElement.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSKMLGraphicType) {
48 };
49 
50 @class AGSKMLGeometry;
51 
59 
60 #pragma mark -
61 #pragma mark initializers
62 
63 
64 
65 
71 -(instancetype)initWithGeometry:(AGSKMLGeometry *)geometry;
72 
78 +(instancetype)KMLPlacemarkWithGeometry:(AGSKMLGeometry *)geometry;
79 
80 #pragma mark -
81 #pragma mark properties
82 
87 @property (nonatomic, copy, readonly) NSArray<AGSKMLGeometry*> *geometries;
88 
92 @property (nonatomic, assign, readonly) AGSKMLGraphicType graphicType;
93 
94 #pragma mark -
95 #pragma mark methods
96 
100 -(void)addGeometry:(AGSKMLGeometry*)geometry;
101 
105 -(void)removeGeometryAtIndex:(NSInteger)index;
106 
110 -(void)insertGeometry:(AGSKMLGeometry*)geometry atIndex:(NSInteger)index;
111 
115 -(void)removeAllGeometries;
116 
117 @end
118 
119 
AGSKMLGraphicType
Definition: AGSKMLPlacemark.h:37
@ AGSKMLGraphicTypePolygon
Definition: AGSKMLPlacemark.h:41
@ AGSKMLGraphicTypeUnknown
Definition: AGSKMLPlacemark.h:47
@ AGSKMLGraphicTypeExtrudedPoint
Definition: AGSKMLPlacemark.h:42
@ AGSKMLGraphicTypeMultiGeometry
Definition: AGSKMLPlacemark.h:46
@ AGSKMLGraphicTypePolyline
Definition: AGSKMLPlacemark.h:40
@ AGSKMLGraphicTypePoint
Definition: AGSKMLPlacemark.h:39
@ AGSKMLGraphicTypeExtrudedPolyline
Definition: AGSKMLPlacemark.h:43
@ AGSKMLGraphicTypeExtrudedPolygon
Definition: AGSKMLPlacemark.h:44
@ AGSKMLGraphicTypeModel
Definition: AGSKMLPlacemark.h:45
@ AGSKMLGraphicTypeNone
Definition: AGSKMLPlacemark.h:38
A KML Geometry element.
Definition: AGSKMLGeometry.h:54
A single node within a KML document.
Definition: AGSKMLNode.h:56
A KML Placemark element.
Definition: AGSKMLPlacemark.h:58
NSArray< AGSKMLGeometry * > * geometries
Definition: AGSKMLPlacemark.h:87
AGSKMLGraphicType graphicType
Definition: AGSKMLPlacemark.h:92
void removeAllGeometries()
An abstract representation of geographic entities on a map.
Definition: AGSGeoElement.h:43