From 8afa14fa78e628007a983d00efa336674e499735 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 1 Dec 2015 13:39:15 -0800 Subject: =?UTF-8?q?[core]=20Map::setSprite=20=E2=87=A2=20Map::addAnnotatio?= =?UTF-8?q?nIcon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #3084 --- platform/ios/MGLMapView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/ios/MGLMapView.mm') 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 )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); } -- cgit v1.2.1