mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-16 16:45:22 +00:00
SVGOverlay & VideoOverlay: respect className option (#6679)
This commit is contained in:

committed by
Vladimir Agafonkin

parent
eee01551bc
commit
b4eda4de0e
@ -29,6 +29,7 @@ export var SVGOverlay = ImageOverlay.extend({
|
||||
|
||||
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;
|
||||
|
@ -46,6 +46,7 @@ export var VideoOverlay = ImageOverlay.extend({
|
||||
|
||||
DomUtil.addClass(vid, 'leaflet-image-layer');
|
||||
if (this._zoomAnimated) { DomUtil.addClass(vid, 'leaflet-zoom-animated'); }
|
||||
if (this.options.className) { DomUtil.addClass(vid, this.options.className); }
|
||||
|
||||
vid.onselectstart = Util.falseFn;
|
||||
vid.onmousemove = Util.falseFn;
|
||||
|
Reference in New Issue
Block a user