MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / mockInitImage

Function mockInitImage

test/tool/mock_leaflet.js:19–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 };
18}
19export 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}
36export function mockHeatLayer() {
37 L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({
38 initialize: function (latlngs, options) {

Callers 1

Calls 2

createMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected