version 2.13.0

add Map library (MapView with OSM maps and items) and mapviewer util
This commit is contained in:
2023-01-20 09:16:42 +03:00
parent 10212e2ebd
commit 958c81fb1d
46 changed files with 2383 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
#include "mapitemnongeogeometrybase.h"
void MapItemNonGeoGeometryBase::setUnits(Units u) {
m_units = u;
updateParent();
}
void MapItemNonGeoGeometryBase::zoomChanged() {
px2m = scalePx2M(norm_pos);
}
double MapItemNonGeoGeometryBase::unitScale() const {
switch (m_units) {
case Meters: return px2m;
default: break;
}
return 1.;
}