[VideoOverlay] Fix adding css classes (#5785)
* fix VideoOverlay css classes * fix eslint errors
This commit is contained in:
parent
811cc7cf9c
commit
ca6025c8bd
@ -58,7 +58,7 @@ export function stamp(obj) {
|
|||||||
/*eslint-disable */
|
/*eslint-disable */
|
||||||
obj._leaflet_id = obj._leaflet_id || ++lastId;
|
obj._leaflet_id = obj._leaflet_id || ++lastId;
|
||||||
return obj._leaflet_id;
|
return obj._leaflet_id;
|
||||||
/*eslint-enable */
|
/* eslint-enable */
|
||||||
}
|
}
|
||||||
|
|
||||||
// @function throttle(fn: Function, time: Number, context: Object): Function
|
// @function throttle(fn: Function, time: Number, context: Object): Function
|
||||||
|
@ -223,7 +223,7 @@ export function setPosition(el, point) {
|
|||||||
|
|
||||||
/*eslint-disable */
|
/*eslint-disable */
|
||||||
el._leaflet_pos = point;
|
el._leaflet_pos = point;
|
||||||
/*eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
||||||
if (Browser.any3d) {
|
if (Browser.any3d) {
|
||||||
setTransform(el, point);
|
setTransform(el, point);
|
||||||
|
@ -39,8 +39,8 @@ export var VideoOverlay = ImageOverlay.extend({
|
|||||||
var wasElementSupplied = this._url.tagName === 'VIDEO';
|
var wasElementSupplied = this._url.tagName === 'VIDEO';
|
||||||
var vid = this._image = wasElementSupplied ? this._url : DomUtil.create('video');
|
var vid = this._image = wasElementSupplied ? this._url : DomUtil.create('video');
|
||||||
|
|
||||||
DomUtil.addClass('leaflet-image-layer');
|
DomUtil.addClass(vid, 'leaflet-image-layer');
|
||||||
if (this._zoomAnimated) { DomUtil.addClass('leaflet-zoom-animated'); }
|
if (this._zoomAnimated) { DomUtil.addClass(vid, 'leaflet-zoom-animated'); }
|
||||||
|
|
||||||
vid.onselectstart = Util.falseFn;
|
vid.onselectstart = Util.falseFn;
|
||||||
vid.onmousemove = Util.falseFn;
|
vid.onmousemove = Util.falseFn;
|
||||||
|
@ -708,7 +708,7 @@ export var Map = Evented.extend({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
/*eslint-disable */
|
/*eslint-disable */
|
||||||
this._container._leaflet_id = undefined;
|
this._container._leaflet_id = undefined;
|
||||||
/*eslint-enable */
|
/* eslint-enable */
|
||||||
this._containerId = undefined;
|
this._containerId = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user