Enforce that transformState belongs to Map thread

This commit is contained in:
John Firebaugh
2015-04-22 15:30:39 -07:00
parent 9e4a03fd9d
commit 7cd55a3333
6 changed files with 21 additions and 26 deletions

View File

@@ -261,11 +261,11 @@ double Map::getMaxZoom() const {
#pragma mark - Size
uint16_t Map::getWidth() const {
return data->getTransformState().getWidth();
return data->transform.currentState().getWidth();
}
uint16_t Map::getHeight() const {
return data->getTransformState().getHeight();
return data->transform.currentState().getHeight();
}