Keep the other dim from the original segment when modifying vertex

This commit is contained in:
Thomas Chandelle
2016-10-13 15:11:18 +02:00
parent c0f960cf71
commit 5d61218134
2 changed files with 45 additions and 1 deletions

View File

@@ -580,7 +580,7 @@ ol.interaction.Modify.handleDragEvent_ = function(evt) {
var index = dragSegment[1];
while (vertex.length < geometry.getStride()) {
vertex.push(0);
vertex.push(segment[index][vertex.length]);
}
switch (geometry.getType()) {