Searched refs:zoomRatio (Results 1 – 2 of 2) sorted by relevance
567 double zoomRatio = qMax(bboxWidth / (m_viewportWidth - m.left() - m.right()), in fitViewportToGeoRectangle() local569 zoomRatio = std::log(zoomRatio) / std::log(2.0); in fitViewportToGeoRectangle()570 res.second = m_cameraData.zoomLevel() - zoomRatio; in fitViewportToGeoRectangle()
2461 double zoomRatio; in fitViewportToMapItemsRefine() local2464 zoomRatio = bboxWidth / width(); in fitViewportToMapItemsRefine()2466 zoomRatio = bboxHeight / height(); in fitViewportToMapItemsRefine()2468 qreal newZoom = std::log10(zoomRatio) / std::log10(0.5); in fitViewportToMapItemsRefine()