We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6106f1f commit 027b52bCopy full SHA for 027b52b
src/interaction/selectmodify.js
@@ -43,8 +43,8 @@ const selectModifyStyle = new Style({
43
// At this point multiGeometries contains only single geometry.
44
multiGeometries.forEach((geomm) => {
45
if (geomm.getType() === 'Polygon') {
46
- geomm.getCoordinates()[0].forEach((coordinate) => {
47
- coordinates.push(coordinate);
+ geomm.getLinearRings().forEach((ring) => {
+ coordinates.push(...ring.getCoordinates());
48
});
49
} else if (geomm.getType() === 'LineString') {
50
coordinates.push(...geomm.getCoordinates());
0 commit comments