MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / mockHeatLayer

Function mockHeatLayer

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

Source from the content-addressed store, hash-verified

34 };
35}
36export function mockHeatLayer() {
37 L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({
38 initialize: function (latlngs, options) {
39 this._latlngs = latlngs;
40 L.setOptions(this, options);
41 },
42 onAdd: function (map) {
43 this._map = map;
44 },
45 onRemove: function (map) {
46 },
47 });
48 L.heatLayer = function () {
49 return new L.HeatLayer();
50 };
51}

Callers 1

WebMapSpec.jsFile · 0.90

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected