Fix MultiPoint modify

This commit is contained in:
Antoine Abt
2014-02-12 15:26:57 +01:00
parent 56a1f053ff
commit f8a748d7f4

View File

@@ -174,12 +174,13 @@ ol.interaction.Modify.prototype.writeMultiPointGeometry_ =
function(feature, geometry) {
var points = geometry.getCoordinates();
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];
segmentData = /** @type {ol.interaction.SegmentDataType} */ ({
feature: feature,
geometry: geometry,
depth: [i],
index: i,
segment: [coordinates, coordinates],
style: this.overlay_.getStyleFunction()
});