PWCustomPointOfInterest Class Reference

Inherits from NSObject
Conforms to PWMapPoint
Declared in PWCustomPointOfInterest.h

Overview

A PWCustomPointOfInterest represents a custom point-of-interest.

  coordinate

The location of the point-of-interest.

@property (nonatomic) CLLocationCoordinate2D coordinate

Declared In

PWCustomPointOfInterest.h

  identifier

The point identifier as specified by the mapping service.

@property (nonatomic) NSInteger identifier

Declared In

PWCustomPointOfInterest.h

  floorID

The identifier of the floor this point belongs to.

@property (nonatomic) NSInteger floorID

Declared In

PWCustomPointOfInterest.h

  floor

The floor this point belongs to.

@property (nonatomic, readonly, nullable, weak) PWFloor *floor

Declared In

PWCustomPointOfInterest.h

  buildingID

The identifier of the building this point belongs to.

@property (nonatomic) NSInteger buildingID

Declared In

PWCustomPointOfInterest.h

  title

The title of the point-of-interest.

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

Declared In

PWCustomPointOfInterest.h

  summary

A summary description of the point-of-interest.

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

Declared In

PWCustomPointOfInterest.h

  image

The representative UIImage of the point-of-interest.

@property (nonatomic, nullable) UIImage *image

Declared In

PWCustomPointOfInterest.h

  pointOfInterestType

A PWPointOfInterestType object that this custom point-of-interest is a member of, a type image icon will automatically be applied if the image property is not set.

@property (nonatomic, nullable) PWPointOfInterestType *pointOfInterestType

Declared In

PWCustomPointOfInterest.h

  metaData

Optional data specified by the developer and associated with the custom point-of-interest.

@property (nonatomic, nullable) NSDictionary *metaData

Declared In

PWCustomPointOfInterest.h

  showTextLabel

A flag indicating whether the label text should be shown or hidden.

@property (nonatomic, getter=isShowTextLabel) BOOL showTextLabel

Declared In

PWCustomPointOfInterest.h

  accessible

A flag indicating if it’s an accessible point.

@property (nonatomic, getter=isAccessible) BOOL accessible

Declared In

PWCustomPointOfInterest.h

  visualImpaired

A flag indicating if the point is friendly to the visually-impaired.

@property (nonatomic, getter=isVisualImpaired) BOOL visualImpaired

Declared In

PWCustomPointOfInterest.h

  exit

A flag indicating if it’s an exit point.

@property (nonatomic, getter=isExit) BOOL exit

Declared In

PWCustomPointOfInterest.h

  minZoomLevel

The minimum zoom level that the point-of-interest is visible on, and the below are the possible values: -1 - always visible(the default value). 1 - subtract 4 from the maximum zoom level that current iOS map supports, it’s 18. 2 - subtract 3 from the maximum zoom level that current iOS map supports, it’s 19. 3 - subtract 2 from the maximum zoom level that current iOS map supports, it’s 20. 4 - subtract 1 from the maximum zoom level that current iOS map supports, it’s 21. 5 - the maximum zoom level that current iOS map supports, it’s 22.

@property (nonatomic) NSInteger minZoomLevel

Discussion

The point-of-interest is only visble when the map zoom level is between minZoomLevel and maxZoomLevel, it’s -1 by default.

Declared In

PWCustomPointOfInterest.h

  maxZoomLevel

The maximum zoom level that the point-of-interest is visible on, and the below are the possible values: -1 - always visible(the default value). 1 - subtract 4 from the maximum zoom level that current iOS map supports, it’s 18. 2 - subtract 3 from the maximum zoom level that current iOS map supports, it’s 19. 3 - subtract 2 from the maximum zoom level that current iOS map supports, it’s 20. 4 - subtract 1 from the maximum zoom level that current iOS map supports, it’s 21. 5 - the maximum zoom level that current iOS map supports, it’s 22.

@property (nonatomic) NSInteger maxZoomLevel

Discussion

The point-of-interest is only visble when the map zoom level is between minZoomLevel and maxZoomLevel, it’s -1 by default.

Declared In

PWCustomPointOfInterest.h

– initWithCoordinate:floor:title:image:

Instantiates a PWCustomPointOfInterest object with the given parameters.

- (instancetype __nullable)initWithCoordinate:(CLLocationCoordinate2D)coordinate floor:(PWFloor *)floor title:(NSString *__nullable)title image:(UIImage *__nullable)image

Parameters

coordinate

The coordinate of custom point-of-interest.

floor

The floor the custom point-of-interest is on.

title

The title of the custom point-of-interest.

image

The icon of the custom point-of-interest.

Return Value

Returns a PWCustomPointOfInterest object.

Declared In

PWCustomPointOfInterest.h

– initWithCoordinate:floorId:buildingId:title:image:

Instantiates a PWCustomPointOfInterest object with the given parameters.

- (instancetype __nullable)initWithCoordinate:(CLLocationCoordinate2D)coordinate floorId:(NSInteger)floorId buildingId:(NSInteger)buildingId title:(NSString *__nullable)title image:(UIImage *__nullable)image

Parameters

coordinate

The coordinate of custom point-of-interest.

floorId

The identifier of the floor the custom point-of-interest is on.

buildingId

The identifier of the building the custom point-of-interest is in.

title

The title of the custom point-of-interest.

image

The icon of the custom point-of-interest.

Return Value

Returns a PWCustomPointOfInterest object.

Declared In

PWCustomPointOfInterest.h