Assume UTF-8–encoded symbol name

Followup to 00245a92be (#1107).
This commit is contained in:
Minh Nguyễn
2015-03-25 15:44:37 -07:00
parent 00245a92be
commit c7b8cb1477

View File

@@ -1800,7 +1800,7 @@ CLLocationCoordinate2D latLngToCoordinate(mbgl::LatLng latLng)
{
symbol = [self.delegate mapView:self symbolNameForAnnotation:annotation];
}
std::string symbolName([symbol cStringUsingEncoding:[NSString defaultCStringEncoding]]);
std::string symbolName([symbol UTF8String]);
// determine anchor point based on symbol
CGPoint calloutAnchorPoint = [self convertCoordinate:annotation.coordinate toPointToView:self];