MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPDirectionsRenderer.h
Go to the documentation of this file.
1//
2// MPDirectionsRenderer.h
3// MapsIndoors
4//
5// Created by Daniel Nielsen on 01/10/15.
6// Copyright © 2015 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
11
12@class GMSMapView;
13@class MPRoute;
14
15#define kMPNotificationDirectionsRenderingStarted @"MP_DIRECTIONS_RENDERING_STARTED"
16#define kMPNotificationDirectionsRenderingStopped @"MP_DIRECTIONS_RENDERING_STOPPED"
17
18#pragma mark - DirectionsRendererContextualInfoSettings
19
30
35@property (nonatomic, nullable) NSArray<NSString*>* types;
36
39@property (nonatomic, nullable) NSArray<NSString*>* categories;
40
42@property (nonatomic) double maxDistance;
43
46
47@end
48
49#pragma mark - Directions Renderer Delegate
50
54@protocol MPDirectionsRendererDelegate <NSObject>
59@optional
60- (void) floorDidChange: (nonnull NSNumber*)floor;
61@end
62
71
72#pragma mark - Directions Renderer
73
77@interface MPDirectionsRenderer : NSObject
78
79@property (nonatomic, weak, nullable) id <MPDirectionsRendererDelegate> delegate;
83@property (nonatomic, strong, nullable) GMSMapView* map;
87@property (nonatomic, strong, nullable) MPRoute* route;
91@property (nonatomic, strong, nullable) UIButton* nextRouteLegButton;
95@property (nonatomic, strong, nullable) UIButton* previousRouteLegButton;
99@property (nonatomic) NSInteger routeLegIndex;
103@property (nonatomic) NSInteger routeStepIndex;
107@property (nonatomic, strong, nullable) UIColor* solidColor;
111@property (nonatomic, strong, nullable) UIColor* backgroundColor;
115@property (nonatomic) BOOL fitBounds;
119@property (nonatomic) MPDirectionsRenderFit fitMode;
123@property (nonatomic) UIEdgeInsets edgeInsets;
127@property (nonatomic, readonly) BOOL isRenderingRoute;
131@property (nonatomic, strong, nullable) NSArray<UIImage*>* actionPointImages;
132
138- (void)animate:(NSTimeInterval)duration;
139
143@property (nonatomic, nullable) MPDirectionsRendererContextualInfoSettings* contextualInfoSettings;
144
145@end
146
MPDirectionsRendererContextualInfoScope
Which information to show from the Location close to the end of a route leg.
Definition MPDirectionsRenderer.h:22
@ MPDirectionsRendererContextualInfoScopeIconAndName
Definition MPDirectionsRenderer.h:24
@ MPDirectionsRendererContextualInfoScopeIconOnly
Definition MPDirectionsRenderer.h:26
@ MPDirectionsRendererContextualInfoScopeNameOnly
Definition MPDirectionsRenderer.h:28
MPDirectionsRenderFit
Definition MPDirectionsRenderer.h:63
@ MPDirectionsRenderFitNorthBound
Definition MPDirectionsRenderer.h:69
@ MPDirectionsRenderFitIndoorPathUpwards
Definition MPDirectionsRenderer.h:67
@ MPDirectionsRenderFitIndoorPathFirstLineUpwards
Definition MPDirectionsRenderer.h:65
Settings for showing contextual info along the rendered route.
Definition MPDirectionsRenderer.h:33
MPDirectionsRendererContextualInfoScope contentScope
Which content should be used. Default is IconAndName.
Definition MPDirectionsRenderer.h:45
double maxDistance
The maximum distance in meters allowed for using text and icon from a Location. Leave blank for a def...
Definition MPDirectionsRenderer.h:42
NSArray< NSString * > * types
Definition MPDirectionsRenderer.h:35
NSArray< NSString * > * categories
Definition MPDirectionsRenderer.h:39
Definition MPDirectionsRenderer.h:78
Definition MPRoute.h:43