Skip to content

Commit ccbbdaa

Browse files
committed
fix test
1 parent 6998d43 commit ccbbdaa

File tree

6 files changed

+209
-188
lines changed

6 files changed

+209
-188
lines changed

src/common/overlay/levelRenderer/Render.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ export class Render {
460460
*/
461461
trigger(eventName, event) {
462462
this.handler.trigger(eventName, event);
463+
this.handler.dispatch(eventName, event);
463464
return this;
464465
}
465466

src/leaflet/overlay/theme/ThemeLayer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ export var ThemeLayer = L.Layer.extend({
399399
}
400400
return this;
401401
},
402+
fire: function (type, data, propagate) { // eslint-disable-line no-unused-vars
403+
this.renderer.trigger(type, data);
404+
L.Layer.prototype.fire.call(this, type, data, propagate);
405+
return this;
406+
},
402407

403408
/**
404409
* @function L.supermap.ThemeLayer.prototype.addTFEvents

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy