()
| 17 | }; |
| 18 | } |
| 19 | export function mockInitImage() { |
| 20 | L.ImageOverlay.prototype._initImage=function () { |
| 21 | this._image = L.DomUtil.create('img', 'leaflet-image-layer'); |
| 22 | var me = this; |
| 23 | setTimeout(function () { |
| 24 | me.fire('load', {}); |
| 25 | }, 100); |
| 26 | }; |
| 27 | L.ImageOverlay.prototype.setUrl = function (url) { |
| 28 | this._url = url; |
| 29 | var me = this; |
| 30 | setTimeout(function () { |
| 31 | me.fire('load', {}); |
| 32 | }, 100); |
| 33 | return this; |
| 34 | }; |
| 35 | } |
| 36 | export function mockHeatLayer() { |
| 37 | L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({ |
| 38 | initialize: function (latlngs, options) { |
no test coverage detected