Resize view from map thread

This commit is contained in:
John Firebaugh
2015-04-23 11:11:12 -07:00
parent a625ba8a09
commit 230027e514
11 changed files with 23 additions and 16 deletions

View File

@@ -131,7 +131,7 @@ std::string Map::getStyleJSON() const {
void Map::resize(uint16_t width, uint16_t height, float ratio) {
if (data->transform.resize(width, height, ratio, width * ratio, height * ratio)) {
triggerUpdate();
context->invoke(&MapContext::resize, width, height, ratio);
}
}