MapsIndoors iOS SDK V3
|
#include <MPMapControl.h>
Instance Methods | |
(void) | - mapContentReady |
(void) | - floorDidChange: |
(void) | - focusedBuildingDidChange: |
(BOOL) | - allowAutomaticSwitchToFloor: |
(BOOL) | - didTapAtCoordinate:withLocations: |
(BOOL) | - didTapMarker:forLocationCluster:moreZoomPossible: |
(nullable UIView *) | - infoWindowForLocationCluster: |
(CGSize) | - getImageSizeForLocationClusterWithCount:clusterId: |
(nullable UIImage *) | - getImageForLocationCluster:imageSize:clusterId: |
(BOOL) | - getImageForLocationCluster:imageSize:clusterId:completion: |
(void) | - onPositionUpdate: |
(void) | - willUpdateLocationsOnMap: |
(void) | - onError: |
Delegate protocol specification to hold the floor change event.
|
optional |
Called when MPMapControl wants to automatically switch floor, for example when the map is panned and the visible buildings have changed.
toFloor | The floor being changed to. |
|
optional |
Called when the user taps the map.
If this delegate-method is not implemented, MPMapControl's default behaviour is used. If this method is implemented, returning YES will still invoke default baheviour.
The default handling by MPMapControl is to select the first item in the locations-list, and add a highlight to the area of the location.
coordinate | Tap coordinate |
locations | List of MPLocations at that point |
|
optional |
Callback for the app to know and determine what should happen when a POI group/cluster marker is tapped.
marker | The marker that was tapped |
locations | The MPlocations that was grouped. |
moreZoomPossible | YES if the map is able to zoom more in, else NO. |
|
optional |
Show flooar changed event method. Can be implemented by delegate object.
|
optional |
Focused building changed event method.
building | The focused building on the map, may be nil. |
|
optional |
Callback for synchronously providing an image for a POI group (aka POI cluster). If both the async and sync variants of this method is implemented, the asynchronous variant is used.
locationCluster | List of grouped POIs |
imageSize | The image size to return. |
clusterId | clusterId of the poi group. |
|
optional |
Callback for asynchronously providing an image for a POI group (aka POI cluster).
locationCluster | List of grouped POIs |
imageSize | The image size to return. |
clusterId | clusterId of the poi group. |
completion | completion handler to deliver the image. |
|
optional |
Callback for the application to determine the size of the grouping/clustering image representing a poi group.
count | The number of POIs grouped into a cluster. |
clusterId | The clusterId that size is requested for. |
|
optional |
Called to get an infoWindow for a map-marker representing a poi-group.
locationCluster | The MPLocations in the group. |
|
optional |
Data ready event method. Can be implemented by delegate object.
|
optional |
Called when an error occurs in MPMapControl
. The error code will reveal what kind of error was emitted. kMPErrorCode- definitions.
error | The error object. |
|
optional |
Called when MPMapControl receives a new position update.
positionResult | The position result as estimated or calculated by a |
|
optional |
Called when MPMapControl receives a location update.
locations | The locations that will be updated |