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

Function _setCanvasPosition

src/leaflet/overlay/EChartsLayer.js:354–359  ·  view source on GitHub ↗
(map, viewportRoot)

Source from the content-addressed store, hash-verified

352}
353
354function _setCanvasPosition(map, viewportRoot) {
355 const mapOffset = _getMapOffset(map);
356 viewportRoot.style.left = mapOffset[0] + 'px';
357 viewportRoot.style.top = mapOffset[1] + 'px';
358 return mapOffset;
359}
360export const echartsLayer = function (echartsOptions, options) {
361 return new EchartsLayer(echartsOptions, options);
362};

Callers 2

EChartsLayer.jsFile · 0.85
moveHandlerFunction · 0.85

Calls 1

_getMapOffsetFunction · 0.85

Tested by

no test coverage detected