10.2.5: AGSMarkerSymbol Class Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
AGSMarkerSymbol Class Reference

Description

Instances of this class represent marker symbols. Symbols describe how graphics look on the map. Different symbols are used for graphics with different geometry types. Marker symbols are used to display those graphics which are based on point or multipoint geometry.

Defined in:
AGSMarkerSymbol.h ( ArcGIS library)

Since
1.0
Inheritance diagram for AGSMarkerSymbol:
AGSSymbol <AGSCoding> AGSPictureMarkerSymbol AGSSimpleMarkerSymbol AGSTextSymbol

Instance Methods

(void) - decodeWithJSON:
 
(NSDictionary *) - encodeToJSON
 
(id) - initWithJSON:
 
(AGSImage *) - swatchForGeometryType:size:
 

Properties

double angle
 
AGSMarkerSymbolAngleAlignment angleAlignment
 
AGSColorcolor
 
CGPoint leaderPoint
 
CGPoint offset
 
CGSize size
 

Method Documentation

- (void) decodeWithJSON: (NSDictionary *)  json
optionalinherited

Decode object from JSON representation.

Parameters
jsonThe JSON representation of the object to be decoded.
Since
1.0
- (NSDictionary *) encodeToJSON
optionalinherited

Encode and return JSON representation for object.

Returns
JSON representation of object.
Since
1.0
- (id) initWithJSON: (NSDictionary *)  json
optionalinherited

Initialize and return object from JSON representation.

Parameters
jsonThe JSON representation of the object to be created.
Returns
Object decoded from JSON representation.
Since
1.0

Reimplemented in AGSWebMapFeatureCollection.

- (AGSImage *) swatchForGeometryType: (AGSGeometryType geometryType
size: (CGSize)  size 

Returns an image that represents a swatch for a particular geometry type.

Parameters
geometryTypeThe type of the geometry determines what kind of swatch is drawn.
sizeSize of the output swatch.
Returns
Image of the drawn swatch.

Property Documentation

- (double) angle
readwritenonatomicassign

The rotation angle (in degrees) of the marker. The marker is rotated in a counter-clockwise direction by the amount specified.

Since
1.0
- (AGSMarkerSymbolAngleAlignment) angleAlignment
readwritenonatomicassign

Whether or not the symbol rotates with the map or stays at the same angle with regards to the screen. Only supported for for layers using AGSGraphicsLayerRenderingModeDynamic

Since
10.2
- (AGSColor*) color
readwritenonatomiccopyinherited

Symbol color.

Since
1.0
- (CGPoint) leaderPoint
readwritenonatomicassign

The location where to show the callout's leader (for example, when a user taps on the symbol) By default, the leader is shown at the center of the symbol. The values specified here are interpreted in a cartesian coordinate system and in points (not pixels). Thus, a value of (-5,-5) will move the leaderPoint location left on the x-axis by 5 points and down on the y-axis by 5 points.

Since
10.1.1
- (CGPoint) offset
readwritenonatomicassign

The offset on the x-axis & y-axis in points, relative to the center of the marker. Default is 0.0 The values specified are interpreted in a cartesian coordinate system. Thus, a value of -5,-5 will shift the marker left by 5 points on the x-axis and down by 5 points on the y-axis.

This is useful when the marker needs to be offset to properly coincide with a location on the map.

For example, consider an AGSPictureMarkerSymbol using the image of a pushpin. By default, the center of the image will be used as the anchor to center the image at the map location. However, if you wanted the needle of the pushpin to end at the map location, you would need to specify the offset to shift the image appropriately.

Since
1.0
- (CGSize) size
readwritenonatomicassign

The size of the marker in points (not pixels). On retina devices, 1 point = 2 pixels. On non-retina, 1 point = 1 pixel.

Since
10.1.1