Merge pull request #2017 from fredj/feature-setgeom-change
Dispatch a change event when the geometry is set
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user