Merge pull request #9973 from tkohr/user-projection-map

Make map work with user projected coordinates
This commit is contained in:
Tim Schaub
2019-09-24 18:21:56 +02:00
committed by GitHub
15 changed files with 166 additions and 47 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ class RenderBox extends Disposable {
endPixel,
[endPixel[0], startPixel[1]]
];
const coordinates = pixels.map(this.map_.getCoordinateFromPixel, this.map_);
const coordinates = pixels.map(this.map_.getCoordinateFromPixelInternal, this.map_);
// close the polygon
coordinates[4] = coordinates[0].slice();
if (!this.geometry_) {