MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getImage$1

Function getImage$1

libs/mapv/mapv.js:4449–4458  ·  view source on GitHub ↗
(url, callback, fallback)

Source from the content-addressed store, hash-verified

4447}
4448
4449function getImage$1(url, callback, fallback) {
4450 var img = new Image();
4451 img.onload = function () {
4452 callback && callback(img, url);
4453 };
4454 img.onerror = function () {
4455 fallback && fallback(url);
4456 };
4457 img.src = window.decodeURIComponent(url);
4458}
4459
4460function sortKD(ids, coords, nodeSize, left, right, depth) {
4461 if (right - left <= nodeSize) {

Callers 1

_loopFunction · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected