|
|
@ -47,7 +47,11 @@ export var ImageOverlay = Layer.extend({
|
|
|
|
|
|
|
|
|
|
|
|
// @option zIndex: Number = 1
|
|
|
|
// @option zIndex: Number = 1
|
|
|
|
// The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the tile layer.
|
|
|
|
// The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the tile layer.
|
|
|
|
zIndex: 1
|
|
|
|
zIndex: 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @option className: String = ''
|
|
|
|
|
|
|
|
// A custom class name to assign to the image. Empty by default.
|
|
|
|
|
|
|
|
className: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function (url, bounds, options) { // (String, LatLngBounds, Object)
|
|
|
|
initialize: function (url, bounds, options) { // (String, LatLngBounds, Object)
|
|
|
@ -176,7 +180,8 @@ export var ImageOverlay = Layer.extend({
|
|
|
|
|
|
|
|
|
|
|
|
_initImage: function () {
|
|
|
|
_initImage: function () {
|
|
|
|
var img = this._image = DomUtil.create('img',
|
|
|
|
var img = this._image = DomUtil.create('img',
|
|
|
|
'leaflet-image-layer ' + (this._zoomAnimated ? 'leaflet-zoom-animated' : ''));
|
|
|
|
'leaflet-image-layer ' + (this._zoomAnimated ? 'leaflet-zoom-animated' : '') +
|
|
|
|
|
|
|
|
(this.options.className || ''));
|
|
|
|
|
|
|
|
|
|
|
|
img.onselectstart = Util.falseFn;
|
|
|
|
img.onselectstart = Util.falseFn;
|
|
|
|
img.onmousemove = Util.falseFn;
|
|
|
|
img.onmousemove = Util.falseFn;
|
|
|
|