diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-01 13:39:15 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-01 15:10:28 -0800 |
commit | 8afa14fa78e628007a983d00efa336674e499735 (patch) | |
tree | 8a003ea8f9e9739af53858af39feb68b367621ae /platform/ios/MGLMapView.mm | |
parent | 8a66b7047f899b781922986b63ecbe9039fcfafc (diff) | |
download | qtlocation-mapboxgl-8afa14fa78e628007a983d00efa336674e499735.tar.gz |
[core] Map::setSprite ⇢ Map::addAnnotationIcon
Fixes #3084
Diffstat (limited to 'platform/ios/MGLMapView.mm')
-rw-r--r-- | platform/ios/MGLMapView.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index ad9a7e37e8..8e57fc4321 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -2263,7 +2263,7 @@ CLLocationCoordinate2D MGLLocationCoordinate2DFromLatLng(mbgl::LatLng latLng) // sprite upload NSString *symbolName = [MGLAnnotationSpritePrefix stringByAppendingString:annotationImage.reuseIdentifier]; - _mbglMap->setSprite(symbolName.UTF8String, cSpriteImage); + _mbglMap->addAnnotationIcon(symbolName.UTF8String, cSpriteImage); } - (void)removeAnnotation:(id <MGLAnnotation>)annotation @@ -2397,7 +2397,7 @@ CLLocationCoordinate2D MGLLocationCoordinate2DFromLatLng(mbgl::LatLng latLng) // determine anchor point based on symbol CGPoint calloutAnchorPoint = [self convertCoordinate:annotation.coordinate toPointToView:self]; - double y = _mbglMap->getTopOffsetPixelsForAnnotationSymbol(cSymbolName); + double y = _mbglMap->getTopOffsetPixelsForAnnotationIcon(cSymbolName); calloutBounds = CGRectMake(calloutAnchorPoint.x - 1, calloutAnchorPoint.y + y, 0, 0); } |