MapsIndoors iOS SDK V3
|
#include <MPLocationDisplayRule.h>
Instance Methods | |
(BOOL) | - show: |
(nullable NSString *) | - getLabelContent: |
(void) | - fetchIcon: |
(nullable instancetype) | - initWithName:AndZoomLevelOn:AndShowLabel: |
(nullable instancetype) | - initWithName:AndIcon:AndZoomLevelOn: |
(nullable instancetype) | - initWithName:AndIcon:AndZoomLevelOn:AndShowLabel: |
(nullable instancetype) | - initWithName:AndIconURL:AndZoomLevelOn:AndShowLabel: |
Properties | |
NSString< Ignore > * | name |
NSNumber * | zOn |
NSNumber * | zOff |
NSString * | iconPath |
NSString * | label |
UIColor< Optional > * | highlightOutlineColor |
UIColor< Optional > *_Nullable | highlightFillColor |
NSNumber< Optional > *_Nullable | highlightStrokeWidth |
UIImage< Ignore > * | icon |
BOOL | showLabel |
BOOL | showIcon |
BOOL | showOutline |
BOOL | visible |
CGSize | iconSize |
NSUInteger | labelMaxWidth |
NSString< Optional > * | clusteringId |
NSInteger | displayRank |
BOOL | showPolygon |
NSNumber * | zOnPolygon |
NSNumber * | zOffPolygon |
NSNumber * | polygonStrokeWidth |
UIColor * | polygonStrokeColor |
UIColor * | polygonFillColor |
NSNumber * | model2DBearing |
NSNumber * | model2DHeightMeters |
NSString * | model2DModel |
BOOL | model2DVisible |
NSNumber * | model2DWidthMeters |
NSNumber * | model2DZoomFrom |
NSNumber * | model2DZoomTo |
This class serves as a display rule for locations.
- (void) fetchIcon: | (nonnull NSString *) | basePathOrBundle |
Retrieve the icon from the ressources and store in memory.
- (nullable NSString *) getLabelContent: | (nonnull MPLocation *) | location |
Get the label from the display rule, based on the location input.
- (nullable instancetype) initWithName: | (nullable NSString *) | name | |
AndIcon: | (nullable UIImage *) | icon | |
AndZoomLevelOn: | (CGFloat) | zOn |
Instantiate a display rule with parameters.
name | The name and identifier of the rule. |
icon | The icon used to display locations that qualify conditions of this rule. |
zOn | The map zoom level above which the location marker should display. |
- (nullable instancetype) initWithName: | (nullable NSString *) | name | |
AndIcon: | (nullable UIImage *) | icon | |
AndZoomLevelOn: | (CGFloat) | zOn | |
AndShowLabel: | (BOOL) | doShowLabel |
Instantiate a display rule with parameters.
name | The name and identifier of the rule. |
icon | The icon used to display locations that qualify conditions of this rule. |
zOn | The map zoom level above which the location marker should display. |
doShowLabel | Whether or not to show a text label instead of the icon. |
- (nullable instancetype) initWithName: | (nullable NSString *) | name | |
AndIconURL: | (nullable NSString *) | iconURL | |
AndZoomLevelOn: | (CGFloat) | zOn | |
AndShowLabel: | (BOOL) | doShowLabel |
Defered instantiate a display rule with parameters.
name | The name and identifier of the rule. |
iconURL | The icon URL used to display locations that qualify conditions of this rule. |
zOn | The map zoom level above which the location marker should display. |
doShowLabel | Whether or not to show a text label instead of the icon. |
- (nullable instancetype) initWithName: | (nullable NSString *) | name | |
AndZoomLevelOn: | (CGFloat) | zOn | |
AndShowLabel: | (BOOL) | doShowLabel |
Instantiate a display rule with parameters.
name | The name and identifier of the rule. |
zOn | The map zoom level above which the location marker should display. |
doShowLabel | Whether or not to show a text label instead of the icon. |
- (BOOL) show: | (CGFloat) | zLevel |
Processes the rule conditions at the given map zoom level.
zLevel | The current map zoom level. |
|
readwritenonatomicstrong |
The grouping or clustering id of this displayrule. MPLocations sharing the same clusteringId may be grouped on the map if necessary. Default value is nil
|
readwritenonatomicassign |
Display rank determines which POI (or group of POIs) will be displayed in case of conflicts / overlaps. Higher ranks wins over lower.
|
readwritenonatomicassign |
The highlight fill color.
|
readwritenonatomicstrong |
The highlight outline color.
|
readwritenonatomicassign |
The highlight stroke width.
|
readwritenonatomicstrong |
The marker icon to use on markers that apply to the display rule.
|
readwritenonatomicstrong |
Relative path of the marker icon to use, without extension. Format is png.
|
readwritenonatomicassign |
Size of the icon image
|
readwritenonatomicstrong |
Label template for the resulting location marker - e.g. "{{name}}", "{{roomId}}", "Room #{{roomId}}" etc..
|
readwritenonatomicassign |
Maximum width in points of the label shown on the map. If the text shown in the label (typically the location name) is longer than the labelMaxWidth the text will flow onto as many lines as needed.
|
readnonatomicstrong |
|
readnonatomicstrong |
|
readnonatomicstrong |
|
readnonatomicassign |
|
readnonatomicstrong |
|
readnonatomicstrong |
|
readnonatomicstrong |
|
readwritenonatomicstrong |
Name/identifier of the rule. Also used as the rule condition for the location types.
|
readwritenonatomicstrong |
The fill color of the polygon drawn on the map.
|
readwritenonatomicstrong |
The stroke color of the polygon drawn on the map.
|
readwritenonatomicstrong |
The stroke width of the polygon drawn on the map.
|
readwritenonatomicassign |
Whether or not to show an icon.
|
readwritenonatomicassign |
Whether or not to show a text label. See label property
|
readwritenonatomicassign |
Whether or not to show an outline.
|
readwritenonatomicassign |
BOOL indicating if the locations polygon should be shown on the map.
|
readwritenonatomicassign |
Whether or not to show the icon.
|
readwritenonatomicstrong |
The map zoom level beneath which the location marker should be visible.
|
readwritenonatomicstrong |
The map zoom level beneath which the location marker should be visible.
|
readwritenonatomicstrong |
The map zoom level above which the location marker should be visible.
|
readwritenonatomicstrong |
The map zoom level above which the location polygon should be visible.