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

Function _getMapOffset

src/leaflet/overlay/EChartsLayer.js:348–352  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

346};
347
348function _getMapOffset(map) {
349 const offset = map.containerPointToLayerPoint([0, 0]);
350 const mapOffset = [offset.x || 0, offset.y || 0];
351 return mapOffset;
352}
353
354function _setCanvasPosition(map, viewportRoot) {
355 const mapOffset = _getMapOffset(map);

Callers 3

LeafletMapCoordSysFunction · 0.85
EChartsLayer.jsFile · 0.85
_setCanvasPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected