MRPlacemark Class Reference

Inherits from MRPointAnnotation : NSObject
Conforms to MRDSearchResultDisplayable
Declared in MRPlacemark.h

Overview

Represents a Placemark, possibly created by the Meridian Editor.

  key

Uniquely identifies this placemark. The parent of this key should identify the map containing this placemark.

@property (nonatomic, copy) MREditorKey *key

Declared In

MRPlacemark.h

  relatedMapKey

If not nil, indicates this placemark leads to another map.

@property (nonatomic, copy) MREditorKey *relatedMapKey

Declared In

MRPlacemark.h

  placemarkDescription

Description of the placemark

@property (nullable, nonatomic, copy) NSString *placemarkDescription

Declared In

MRPlacemark.h

  name

The name given to this placemark.

@property (nullable, nonatomic, copy) NSString *name

Declared In

MRPlacemark.h

  type

The placemark’s type, such as “cafe” or “water_fountain”.

@property (nullable, nonatomic, copy) NSString *type

Declared In

MRPlacemark.h

  typeName

A form of the placemark’s type intended for display to users, such as “Cafe” or “Water Fountain”.

@property (nullable, nonatomic, copy) NSString *typeName

Declared In

MRPlacemark.h

  typeCategory

The placemark type category, example for “Men’s Restrooms” might be “Restroom”. Intended to display to users.

@property (nullable, nonatomic, copy) NSString *typeCategory

Declared In

MRPlacemark.h

  color

The color to use when drawing this placemark’s map annotation. You can set this to override the default color.

@property (nullable, nonatomic, strong) UIColor *color

Declared In

MRPlacemark.h

  point

This placemark’s coordinates relative to its parent map.

@property (nonatomic, assign) CGPoint point

Declared In

MRPlacemark.h

  hideOnMap

If YES, this placemark will not be shown on its map.

@property (nonatomic, assign) BOOL hideOnMap

Declared In

MRPlacemark.h

  imageURL

An image representing this placemark.

@property (nullable, nonatomic, strong) NSURL *imageURL

Declared In

MRPlacemark.h

  area

A path describing the placemark’s area, if one was defined.

@property (nonatomic, strong) UIBezierPath *area

Declared In

MRPlacemark.h

  zPosition

This property changes the the front-to-back ordering of annotations onscreen. Default will be some value between MRZPositionPlacemarkMin and MRZPositionPlacemarkMax

@property (nonatomic, assign) CGFloat zPosition

Declared In

MRPlacemark.h

  collides

If YES this annotation collides with other annotations. Default is YES.

@property (nonatomic, assign) BOOL collides

Declared In

MRPlacemark.h

  uid

A unique identifier to link this placemark to objects outside of the Meridian Editor

@property (nullable, nonatomic, copy) NSString *uid

Declared In

MRPlacemark.h

  coordinates

CLLocation object containing latitude and longitude of the placemark if available

@property (nullable, nonatomic, copy) CLLocation *coordinates

Declared In

MRPlacemark.h

  facility

Is the placemark a facility? If not, it’s a point of interest.

@property (nonatomic, assign, getter=isFacility) BOOL facility

Declared In

MRPlacemark.h

  phone

Phone number assigned to placemark

@property (nullable, nonatomic, copy) NSString *phone

Declared In

MRPlacemark.h

  email

Email address assigned to placemark

@property (nullable, nonatomic, copy) NSString *email

Declared In

MRPlacemark.h

  URL

Url assigned to placemark

@property (nullable, nonatomic, copy) NSURL *URL

Declared In

MRPlacemark.h

  disabled

If YES, this placemark is disabled.

@property (nonatomic, assign, getter=isDisabled) BOOL disabled

Declared In

MRPlacemark.h

– initWithMap:point:

Programmatically create an MRPlacemark that may not exist in the Meridian Editor, but can be used for other APIs like directions.

- (instancetype)initWithMap:(MREditorKey *)mapKey point:(CGPoint)point

Parameters

mapKey

The map that this placemark belongs to.

point

The coordinates of this placemark.

Declared In

MRPlacemark.h

– isEqualToPlacemark:

Compares placemarks using their editor key.

- (BOOL)isEqualToPlacemark:(MRPlacemark *)placemark

Parameters

placemark

A placemark being compared against.

Declared In

MRPlacemark.h