Fix MultiPoint modify
This commit is contained in:
@@ -174,12 +174,13 @@ ol.interaction.Modify.prototype.writeMultiPointGeometry_ =
|
|||||||
function(feature, geometry) {
|
function(feature, geometry) {
|
||||||
var points = geometry.getCoordinates();
|
var points = geometry.getCoordinates();
|
||||||
var coordinates, i, ii, segmentData;
|
var coordinates, i, ii, segmentData;
|
||||||
for (i = 0, ii = points.length - 1; i < ii; ++i) {
|
for (i = 0, ii = points.length; i < ii; ++i) {
|
||||||
coordinates = points[i];
|
coordinates = points[i];
|
||||||
segmentData = /** @type {ol.interaction.SegmentDataType} */ ({
|
segmentData = /** @type {ol.interaction.SegmentDataType} */ ({
|
||||||
feature: feature,
|
feature: feature,
|
||||||
geometry: geometry,
|
geometry: geometry,
|
||||||
depth: [i],
|
depth: [i],
|
||||||
|
index: i,
|
||||||
segment: [coordinates, coordinates],
|
segment: [coordinates, coordinates],
|
||||||
style: this.overlay_.getStyleFunction()
|
style: this.overlay_.getStyleFunction()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user