SVGOverlay
export var SVGOverlay = ImageOverlay.extend({
_initImage: function () {
var el = (this._image = this._url);
DomUtil.addClass(el, "leaflet-image-layer");
if (this._zoomAnimated) {
DomUtil.addClass(el, "leaflet-zoom-animated");
}
if (this.options.className) {
DomUtil.addClass(el, this.options.className);
}
el.onselectstart = Util.falseFn;
el.onmousemove = Util.falseFn;
},
});
export function svgOverlay(el, bounds, options) {
return new SVGOverlay(el, bounds, options);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
编辑 (opens new window)
上次更新: 2025/04/15, 05:47:03