read sprite image from style

This commit is contained in:
Konstantin Käfer
2014-07-02 11:38:36 +02:00
parent 5d92e7c610
commit e93803ac80
8 changed files with 25 additions and 6 deletions

View File

@@ -433,8 +433,9 @@ void Map::prepare() {
if (pixelRatioChanged) {
style->sprite = std::make_shared<Sprite>(*this, state.getPixelRatio());
style->sprite->load(kSpriteURL);
if (style->sprite_url.size()) {
style->sprite->load(style->sprite_url);
}
spriteAtlas->resize(state.getPixelRatio());
}