MapsIndoors iOS SDK V3
|
#include <MPLocationUpdate.h>
Instance Methods | |
(instancetype) | - UNAVAILABLE_ATTRIBUTE |
(void) | - addPropertyValue:forKey: |
(void) | - addCategory: |
(MPLocation *) | - location |
Class Methods | |
(MPLocationUpdate *) | + updateWithLocation: |
(MPLocationUpdate *) | + updateWithId:fromSource: |
Properties | |
NSInteger | sourceId |
NSInteger | locationId |
NSString * | type |
NSString * | name |
NSInteger | floor |
CLLocationCoordinate2D | position |
UIImage * | icon |
NSURL * | iconUrl |
CGPoint | iconMapAnchor |
Location Update / Builder class
- (void) addCategory: | (NSString *) | categoryKey |
Add category key. Possible categories can be reviewed in MapsIndoors CMS or programmatically using the MPCategoriesProvider
categoryKey | The category key |
- (void) addPropertyValue: | (NSString *) | value | |
forKey: | (NSString *) | key |
Adds a property to the location update. Some keys will be recognised as a key for a known property on the resulting MPLocation
. If they are not recognised or the known property only supports one value, the property will be added as a field on MPLocation.fields
value | The string value for the property |
key | The key for the property |
- (MPLocation *) location |
Builds the location object. Should only be called once per intended location instance.
- (instancetype) UNAVAILABLE_ATTRIBUTE |
+ (MPLocationUpdate *) updateWithId: | (NSInteger) | locationId | |
fromSource: | (id< MPLocationSource >) | locationSource |
Initialiser that creates a MPLocationUpdate instance based on an id and a location source.
locationId | Location id. This id is expected to be unique for a given location source, but not necessarily unique across multiple location sources. |
locationSource | The location source that is going to maintain this location. |
+ (MPLocationUpdate *) updateWithLocation: | (MPLocation *) | location |
Initialiser that creates a MPLocationUpdate instance based on an existing location.
location | The existing location. |
|
readwritenonatomicassign |
The floor index of the Location. Must be set to a valid floor index. If unknown, these can be seen in MapsIndoors CMS.
|
readwritenonatomicstrong |
Location icon. If not set, the location will either get an icon from the settings configured for the type of location or a default appearance that is configurable through MPMapControl
.
|
readwritenonatomicassign |
Icon map anchor specifies the point in the icon image that is anchored to the marker's position on the Earth's surface. E.g. point 0.5, 0.5 is the middle of the image.
|
readwritenonatomicstrong |
Location icon as a URL. If icon is set as a UIImage, this property will be ignored.
|
readnonatomicassign |
The id of the Location. This id is not unique across multiple location sources.
|
readwritenonatomicstrong |
The name of the Location.
|
readwritenonatomicassign |
The geographical position of the Location.
|
readnonatomicassign |
The id of the Location Source where this location was created
|
readwritenonatomicstrong |
The type of the Location.