Dispatch a change event when the geometry is set

Fixes #2016
This commit is contained in:
Frederic Junod
2014-04-26 08:09:26 +02:00
parent 928e3244cf
commit 74d83f29d2

View File

@@ -149,6 +149,7 @@ ol.Feature.prototype.handleGeometryChanged_ = function() {
if (goog.isDefAndNotNull(geometry)) {
this.geometryChangeKey_ = goog.events.listen(geometry,
goog.events.EventType.CHANGE, this.handleGeometryChange_, false, this);
this.dispatchChangeEvent();
}
};