Use ol.array.safeExtend in ol.geom.MultiPoint

This commit is contained in:
Tom Payne
2014-03-23 19:45:12 +01:00
parent 765985c5a9
commit b9a6048791

View File

@@ -2,6 +2,7 @@ goog.provide('ol.geom.MultiPoint');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('ol.array');
goog.require('ol.extent');
goog.require('ol.geom.GeometryType');
goog.require('ol.geom.Point');
@@ -34,7 +35,7 @@ ol.geom.MultiPoint.prototype.appendPoint = function(point) {
if (goog.isNull(this.flatCoordinates)) {
this.flatCoordinates = point.getFlatCoordinates().slice();
} else {
goog.array.extend(this.flatCoordinates, point.getFlatCoordinates());
ol.array.safeExtend(this.flatCoordinates, point.getFlatCoordinates());
}
this.dispatchChangeEvent();
};