Merge branch 'master' into metatile-attr

This commit is contained in:
GriffinR
2022-11-18 18:13:21 -05:00
committed by GitHub
12 changed files with 148 additions and 110 deletions

View File

@@ -179,6 +179,18 @@ void MapView::setVerticalScale(qreal scale) {
this->scene()->update();
}
void MapView::setScale(qreal hScale, qreal vScale, int layer) {
this->getOverlay(layer)->setScale(hScale, vScale);
this->scene()->update();
}
// Overload. No layer provided, set scale of all layers
void MapView::setScale(qreal hScale, qreal vScale) {
foreach (Overlay * layer, this->overlayMap)
layer->setScale(hScale, vScale);
this->scene()->update();
}
int MapView::getRotation(int layer) {
return this->getOverlay(layer)->getRotation();
}