Inherits from UIView
Declared in PARPoiLabelTemplate.h

Overview

PARPoiLabelTemplate

Tasks

Properties

content

UILabel displaying the description (i.e. additional text content) of the POI

@property (nonatomic, weak) IBOutlet UILabel *content

Discussion

UILabel displaying the description (i.e. additional text content) of the POI

Declared In

PARPoiLabelTemplate.h

distance

UILabel displaying a string formated with the distance of the POI of the POI

@property (nonatomic, weak) IBOutlet UILabel *distance

Discussion

UILabel displaying a string formated with the distance of the POI of the POI

Declared In

PARPoiLabelTemplate.h

image

UIImageView displaying the image of the POI, if no image is set in POI or no UIImageView is assigned no image will be displayed

@property (nonatomic, weak) IBOutlet UIImageView *image

Discussion

UIImageView displaying the image of the POI, if no image is set in POI or no UIImageView is assigned no image will be displayed

Declared In

PARPoiLabelTemplate.h

originalSize

the original size of the label template used internally for updating its appearance

@property (nonatomic, assign) CGSize originalSize

Discussion

the original size of the label template used internally for updating its appearance

Declared In

PARPoiLabelTemplate.h

poiLabel

reference to the PARPoiLabel instance this template belongs to

@property (nonatomic, weak) PARPoiLabel *poiLabel

Discussion

reference to the PARPoiLabel instance this template belongs to

Declared In

PARPoiLabelTemplate.h

title

UILabel displaying the title of the POI

@property (nonatomic, weak) IBOutlet UILabel *title

Discussion

UILabel displaying the title of the POI

Declared In

PARPoiLabelTemplate.h

Class Methods

appearanceCloseRange

distance at which appearance effects start

+ (float)appearanceCloseRange

Discussion

distance at which appearance effects start

Declared In

PARPoiLabelTemplate.h

appearanceFarRange

distance at which appearance effects reach maximum

+ (float)appearanceFarRange

Discussion

distance at which appearance effects reach maximum

Declared In

PARPoiLabelTemplate.h

loadMarkerTemplate:

load a Marker Templated from a XIB file

+ (PARPoiLabelTemplate *)loadMarkerTemplate:(NSString *)xibFilename

Parameters

xibFilename

name of the marker template xib file @ref loadPoiLabelTemplate

Declared In

PARPoiLabelTemplate.h

loadPoiLabelTemplate:

load a Marker Templated from a XIB file

+ (PARPoiLabelTemplate *)loadPoiLabelTemplate:(NSString *)xibFilename

Parameters

xibFilename

name of the marker template xib file

Declared In

PARPoiLabelTemplate.h

loadPoiLabelTemplate:fromBundle:

load a Marker Templated from a XIB file in bundle

+ (PARPoiLabelTemplate *)loadPoiLabelTemplate:(NSString *)xibFilename fromBundle:(NSBundle *)bundle

Parameters

xibFilename

name of the marker template xib file

bundle

is the NSBundle the nib file will be loaded from

Declared In

PARPoiLabelTemplate.h

setAppearanceRange:andFarRange:

ranges for calculating appearance effects

+ (void)setAppearanceRange:(float)closeRange andFarRange:(float)farRange

Parameters

closeRange

if poi label is closer than closeRange no effects will be applied

farRange

animation of effects stops at farRange @remarks defaults to close = 500 meters and far = 100 kilometers @remarks the defaul poi label template fades out over distance and gets smaller; implement your own effects in a sub-class

Declared In

PARPoiLabelTemplate.h

Instance Methods

labelTappedAction:

updateAppearance

applys appearance effects to the label based on the current distance to the user and the settings in appearanceCloseRange and appearanceFarRange

- (void)updateAppearance

Discussion

applys appearance effects to the label based on the current distance to the user and the settings in appearanceCloseRange and appearanceFarRange

Declared In

PARPoiLabelTemplate.h