Skip to content

Commit

Permalink
Merge pull request #596 from openmobilemaps/bugfix/use-map-system-sca…
Browse files Browse the repository at this point in the history
…le-factor
  • Loading branch information
maerki authored Feb 13, 2024
2 parents dd18515 + 4056856 commit 339e233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/map/camera/MapCamera2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MapCamera2d::MapCamera2d(const std::shared_ptr<MapInterface> &mapInterface, floa
, conversionHelper(mapInterface->getCoordinateConverterHelper())
, mapCoordinateSystem(mapInterface->getMapConfig().mapCoordinateSystem)
, screenDensityPpi(screenDensityPpi)
, screenPixelAsRealMeterFactor(0.0254 / screenDensityPpi)
, screenPixelAsRealMeterFactor(0.0254 / screenDensityPpi * mapCoordinateSystem.unitToScreenMeterFactor)
, centerPosition(mapCoordinateSystem.identifier, 0, 0, 0)
, bounds(mapCoordinateSystem.bounds) {
auto mapConfig = mapInterface->getMapConfig();
Expand Down

0 comments on commit 339e233

Please sign in to comment.