diff --git a/packages/maps/src/tdtmap/map.ts b/packages/maps/src/tdtmap/map.ts index 3a23e12723..998499687a 100644 --- a/packages/maps/src/tdtmap/map.ts +++ b/packages/maps/src/tdtmap/map.ts @@ -116,6 +116,7 @@ export default class TdtMapService extends BaseMapService { overlayPane.parentElement.appendChild(container); container.id = 'tdt-L7'; const size = this.map.getSize(); + container.style.position = 'relative'; // 修复天地图图层被覆盖的问题 container.style.zIndex = '200'; //置于上层 container.style.width = `${size.x}px`; container.style.height = `${size.y}px`;