diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 2a9a384724..f90601bc27 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -1081,3 +1081,17 @@ function setStyle(elements: HTMLElement[], styleProp: string, value) { e.style[styleProp] = value }) } + +export function mapRendering(dom: HTMLElement | string) { + if (typeof dom === 'string') { + dom = document.getElementById(dom) + } + dom.classList.add('de-map-rendering') +} + +export function mapRendered(dom: HTMLElement | string) { + if (typeof dom === 'string') { + dom = document.getElementById(dom) + } + dom.classList.add('de-map-rendered') +}