@@ -189,15 +189,15 @@ public function __construct(LatLng $centerMap, int $zoom, XY $outputSize)
189
189
);
190
190
$ this ->latLngTopRight = new LatLng (
191
191
static ::tilePxToLat ($ this ->mapCropTopLeft ->getY (), $ this ->tileTopLeft ->getY (), $ zoom ),
192
- static ::tilePxToLng ($ this ->mapCropBottomRight ->getX (), $ this ->tileBottomRight ->getX (), $ zoom )
192
+ static ::tilePxToLng (256 - $ this ->mapCropBottomRight ->getX (), $ this ->tileBottomRight ->getX (), $ zoom )
193
193
);
194
194
$ this ->latLngBottomLeft = new LatLng (
195
- static ::tilePxToLat ($ this ->mapCropBottomRight ->getY (), $ this ->tileBottomRight ->getY (), $ zoom ),
195
+ static ::tilePxToLat (256 - $ this ->mapCropBottomRight ->getY (), $ this ->tileBottomRight ->getY (), $ zoom ),
196
196
static ::tilePxToLng ($ this ->mapCropTopLeft ->getX (), $ this ->tileTopLeft ->getX (), $ zoom )
197
197
);
198
198
$ this ->latLngBottomRight = new LatLng (
199
- static ::tilePxToLat ($ this ->mapCropBottomRight ->getY (), $ this ->tileBottomRight ->getY (), $ zoom ),
200
- static ::tilePxToLng ($ this ->mapCropBottomRight ->getX (), $ this ->tileBottomRight ->getX (), $ zoom )
199
+ static ::tilePxToLat (256 - $ this ->mapCropBottomRight ->getY (), $ this ->tileBottomRight ->getY (), $ zoom ),
200
+ static ::tilePxToLng (256 - $ this ->mapCropBottomRight ->getX (), $ this ->tileBottomRight ->getX (), $ zoom )
201
201
);
202
202
}
203
203
0 commit comments