Inherits from MKMapView
Declared in SCMapView.h

Overview

A subclass of MKMapView. It has all features of its parent class and allows using pathfinding features while targeting iOS6.
Note : on iOS 6 pathfinding implementation is based on google services. For more information please consider http://code.google.com/apis/maps/iphone/terms.html

Tasks

SitecoreAPI Methods

Properties

didLoadedAnnotationsHandler

Handler to catch the result of annotations loading process.

@property (nonatomic, copy) SCMapViewResultHandler didLoadedAnnotationsHandler

Discussion

Handler to catch the result of annotations loading process.

Declared In

SCMapView.h

drawRouteToNearestAddress

Specify YES to draw route to nearest address. Route will be drawn after calling one of the -(void)addItemsAnnotations… methods to the nearest to user location address from the result set.

@property (nonatomic) BOOL drawRouteToNearestAddress

Discussion

Specify YES to draw route to nearest address. Route will be drawn after calling one of the -(void)addItemsAnnotations… methods to the nearest to user location address from the result set.

Declared In

SCMapView.h

regionRadius

Active area radius which will be used as the amount of north-to-south and east-to-west distance (measured in meters) to build map region.
User location will be used as the region center.

@property (nonatomic) CLLocationDistance regionRadius

Discussion

Active area radius which will be used as the amount of north-to-south and east-to-west distance (measured in meters) to build map region.
User location will be used as the region center.

Declared In

SCMapView.h

Instance Methods

addItemsAnnotationsForQuery:apiSession:handler:

Adds annotations with items from query.

- (void)addItemsAnnotationsForQuery:(NSString *)query apiSession:(SCApiSession *)apiSession handler:(void ( ^ ) ( NSError *))handler

Parameters

query

the querry to receive set of items based on the “Mobile Address” template. Example: “/sitecore/content/home/child::*[@@templatename=‘Mobile Address’]”

apiSession

obejct of SCApiSession type

handler

result handler, will be invoked when items downloading and geocoding procedures will be finished. Error will be nil, if all operation will be successful, in other case error will contaign appropriate error object.

Discussion

Adds annotations with items from query.

Declared In

SCMapView.h

addItemsAnnotationsWithPath:apiSession:handler:

Adds annotations with items from path.

- (void)addItemsAnnotationsWithPath:(NSString *)path apiSession:(SCApiSession *)apiSession handler:(void ( ^ ) ( NSError *))handler

Parameters

path

the path to items based on the “Mobile Address” template. Example: “/sitecore/content/home/”

apiSession

obejct of SCApiSession type

handler

result handler, will be invoked when items downloading and geocoding procedures will be finished. Error will be nil, if all operation will be successful, in other case error will contaign appropriate error object.

Discussion

Adds annotations with items from path.

Declared In

SCMapView.h

setCamera:

The camera used for determining the appearance of the map.

- (void)setCamera:(id)camera

Parameters

camera

MKMapCamera object.

Discussion

The camera used for determining the appearance of the map.

Declared In

SCMapView.h

setCamera:animated:

The camera used for determining the appearance of the map.

- (void)setCamera:(id)camera animated:(BOOL)animated

Parameters

camera

MKMapCamera object.

animated

Specify YES if you want the change in viewing angle to be animated or NO if you want the map to reflect the changes without animations.

Discussion

The camera used for determining the appearance of the map.

Declared In

SCMapView.h