NMSMarker.h
1 //
2 // NMSMarker.h
3 // NavionicsMobileSDK
4 //
5 // Copyright © 2016 Navionics. All rights reserved.
6 //
7 
8 #import "NMSOverlay.h"
9 #import <UIKit/UIKit.h>
10 #import <CoreLocation/CoreLocation.h>
11 #import <CoreGraphics/CoreGraphics.h>
12 
14 @interface NMSMarker : NMSOverlay
15 
21 + (instancetype)markerWithPosition:(CLLocationCoordinate2D)position;
22 
24 @property(nonatomic, assign)CLLocationCoordinate2D position;
25 
30 @property(nonatomic, retain)NSString* snippet;
31 
33 @property(nonatomic, retain)UIImage* image;
34 
36 @property(nonatomic, assign)CGFloat opacity;
37 
39 @property(nonatomic, assign)CGPoint anchor;
40 
41 @end
Icon placed at a particular point on the map&#39;s surface.
Definition: NMSMarker.h:14
UIImage * image
Marker icon to render.
Definition: NMSMarker.h:33
CGFloat opacity
Sets the opacity of the marker, between 0 (completely transparent) and 1 (default) inclusive...
Definition: NMSMarker.h:36
NSString * snippet
Snippet text Not Supported in this version.
Definition: NMSMarker.h:30
CLLocationCoordinate2D position
Marker position.
Definition: NMSMarker.h:24
Abstract class that represents some overlay that may be attached to a specific NMSMapView.
Definition: NMSOverlay.h:12
CGPoint anchor
The anchor specifies the point in the icon image that is anchored to the marker&#39;s position on the Ear...
Definition: NMSMarker.h:39