Implement Style::isLoaded

This commit is contained in:
John Firebaugh
2015-04-21 17:36:50 -07:00
parent 6c7a01a503
commit ec7588f1fd
5 changed files with 37 additions and 1 deletions

View File

@@ -236,7 +236,7 @@ void MapContext::render() {
painter->render(*style, data.getTransformState(), data.getAnimationTime());
if (data.mode == MapMode::Still && data.callback /* && loaded() */) {
if (data.mode == MapMode::Still && data.callback && style->isLoaded() && getSprite()->isLoaded()) {
auto image = view.readStillImage();
// We are moving the callback out of the way and empty it in case the callback function