SourceTermAnalysisSystem_vue/node_modules/ol-ext/source/Vector.js

14 lines
392 B
JavaScript
Raw Normal View History

2026-05-15 10:22:44 +08:00
import ol_source_Vector from 'ol/source/Vector.js'
;(function () {
var clear = ol_source_Vector.prototype.clear;
/** Overwrite ol/source/Vector clear to fire clearstart / clearend event
*/
ol_source_Vector.prototype.clear = function(opt_fast) {
this.dispatchEvent({ type: 'clearstart' });
clear.call(this, opt_fast)
this.dispatchEvent({ type: 'clearend' });
};
})();