let app = null; let mapContainer = null; export function syncApp(param) { app = param; } export function syncMapContainer(param) { mapContainer = param; } export const getRealPosition = (x, y) => { const rect = app.view.getBoundingClientRect(); return { mapX: x - rect.left, mapY: y - rect.top } }