add ability to set custom sprites on the Map object

This commit is contained in:
Konstantin Käfer
2015-07-02 17:44:32 +02:00
parent 70d0a26f98
commit f9601ae685
6 changed files with 60 additions and 0 deletions

View File

@@ -346,6 +346,17 @@ LatLngBounds Map::getBoundsForAnnotations(const std::vector<uint32_t>& annotatio
}
#pragma mark - Sprites
void Map::setSprite(const std::string& name, std::shared_ptr<const SpriteImage> sprite) {
context->invoke(&MapContext::setSprite, name, sprite);
}
void Map::removeSprite(const std::string& name) {
setSprite(name, nullptr);
}
#pragma mark - Toggles
void Map::setDebug(bool value) {