Developer
VisioMove Essential (iOS)
1.27.8
Main Page
Related Pages
Framework
◆
updateLocation:
- (void) updateLocation:
(
VMELocation
*_Nullable)
update
Updates the uses current physical location within the map.
Parameters
update
The location update to apply. If nil is passed, then the current location will be removed from the map.
Note
Calls to this method before
mapDidLoad: (VMELifeCycleListener-p)
is called will be ignored.
This method filters unnecessary location updates. A location update is filtered if:
it's received less than a second since the previous update
it's the same as the previous update
it falls outside of the map's limits
Example
#pragma mark - CLLocationManagerDelegate
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
{
CLLocation* lCLLocation = locations.lastObject;
VMELocation
* lVMELocation = [self.mapView createLocationFromLocation:lCLLocation];
[self.mapView updateLocation:lVMELocation];
}
VMELocation
A VMELocation object incorporates the position within the map as well as values indicating the accura...
Definition:
VMELocation.h:18
Version
1.0
1.2 Change update parameter from CLLocation to
VMELocation
.
© 2022 Copyright Visioglobe, All Rights Reserved. View our
Privacy Policy
VMEMapView