[iOS] send map rendering notifications

This commit is contained in:
Konstantin Käfer
2015-04-29 15:38:54 +02:00
parent 307ad680ba
commit 286338c978

View File

@@ -613,6 +613,8 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
{
if ( ! self.glSnapshotView || self.glSnapshotView.hidden)
{
[self notifyMapChange:@(mbgl::MapChangeWillStartRenderingMap)];
_mbglMap->resize(rect.size.width, rect.size.height, view.contentScaleFactor);
CGFloat zoomFactor = _mbglMap->getMaxZoom() - _mbglMap->getMinZoom() + 1;
@@ -626,6 +628,8 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
_mbglMap->setSourceTileCacheSize(cacheSize);
_mbglMap->renderSync();
[self notifyMapChange:@(mbgl::MapChangeDidFinishRenderingMap)];
}
}