refs #894, fixes #1074: callout views for iOS

This commit is contained in:
Justin R. Miller
2015-03-24 18:43:24 -07:00
parent 3490622dd2
commit 10a30daed6
10 changed files with 279 additions and 49 deletions

View File

@@ -545,6 +545,12 @@ void Map::setDefaultPointAnnotationSymbol(const std::string& symbol) {
annotationManager->setDefaultPointAnnotationSymbol(symbol);
}
double Map::getTopOffsetPixelsForAnnotationSymbol(const std::string& symbol) {
SpritePosition pos = sprite->getSpritePosition(symbol);
return -pos.height / pos.pixelRatio / 2;
}
uint32_t Map::addPointAnnotation(const LatLng& point, const std::string& symbol) {
assert(Environment::currentlyOn(ThreadType::Main));
std::vector<LatLng> points({ point });