$OpenBSD: patch-src_Layers_ImageMapLayer_cpp,v 1.1 2021/04/12 10:17:11 landry Exp $

Index: src/Layers/ImageMapLayer.cpp
--- src/Layers/ImageMapLayer.cpp.orig
+++ src/Layers/ImageMapLayer.cpp
@@ -97,8 +97,8 @@ CoordBox ImageMapLayer::boundingBox()
 
     p->theProjection.setProjectionType(p->theMapAdapter->projection());
     QRectF r = p->theMapAdapter->getBoundingbox();
-    Coord tl = p->theProjection.inverse2Coord(r.topLeft());
-    Coord br = p->theProjection.inverse2Coord(r.bottomRight());
+    Coord tl = p->theProjection.inverse(r.topLeft());
+    Coord br = p->theProjection.inverse(r.bottomRight());
     return CoordBox(tl, br);
 }
 
@@ -691,8 +691,8 @@ QRect ImageMapLayer::drawFull(MapView& theView, QRect&
 
     MapView::transformCalc(p->theTransform, p->theProjection, 0.0, CoordBox(alignedViewport), rect);
 
-    CoordBox cViewport(p->theProjection.inverse2Coord(p->theTransform.inverted().map(fRect.bottomLeft())),
-                     p->theProjection.inverse2Coord(p->theTransform.inverted().map(fRect.topRight())));
+    CoordBox cViewport(p->theProjection.inverse(p->theTransform.inverted().map(fRect.bottomLeft())),
+                     p->theProjection.inverse(p->theTransform.inverted().map(fRect.topRight())));
     CoordBox Viewport = CoordBox(p->AlignementTransformList.at(0).mapRect(cViewport));
     QPointF bl = theView.toView(Viewport.bottomLeft());
     QPointF tr = theView.toView(Viewport.topRight());
@@ -906,8 +906,8 @@ QRect ImageMapLayer::drawTiled(MapView& theView, QRect
     QPointF vp0Center = QPointF(projVp.width()/2, -projVp.height()/2);
 
     Coord ulCoord, lrCoord;
-    ulCoord = p->theProjection.inverse2Coord(vlm.topLeft());
-    lrCoord = p->theProjection.inverse2Coord(vlm.bottomRight());
+    ulCoord = p->theProjection.inverse(vlm.topLeft());
+    lrCoord = p->theProjection.inverse(vlm.bottomRight());
 
     const QPointF tl = theView.transform().map(theView.projection().project(ulCoord));
     const QPointF br = theView.transform().map(theView.projection().project(lrCoord));
