Skip to content

Commit

Permalink
fix(direction) Reverse search proposal for multipolygon (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord authored and mbarbeau committed Oct 25, 2019
1 parent f1571ca commit 800c172
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ export class RoutingFormComponent implements OnInit, AfterViewInit, OnDestroy {
geomCoord = [geomCoord[0], geomCoord[1]];
} else if (geom.type.search('Polygon') >= 0) {
const poly = (new OlGeoJSON()).readFeatures(geom);
geomCoord = poly[0].getGeometry().getInteriorPoints().getCoordinates();
geomCoord = poly[0].getGeometry().getInteriorPoints().getFirstCoordinate();
geomCoord = [geomCoord[0], geomCoord[1]];
}

Expand Down

0 comments on commit 800c172

Please sign in to comment.