diff --git a/components/ReportsMap.tsx b/components/ReportsMap.tsx index 13516ee..26ef052 100644 --- a/components/ReportsMap.tsx +++ b/components/ReportsMap.tsx @@ -24,7 +24,8 @@ function pinElement(r: ReportSummary): HTMLButtonElement { el.type = "button"; el.setAttribute("aria-label", `${r.title}, ${STATUS_LABEL[r.status]}`); // No transition here: MapLibre positions this element with transform, so animating it makes pins wobble. - el.style.cssText = "all:unset;cursor:pointer;display:block;width:34px;height:44px"; + // Keep position:absolute here. `all:unset` would reset it to static, and MapLibre then drifts every pin on zoom. + el.style.cssText = "position:absolute;top:0;left:0;margin:0;padding:0;border:0;background:none;cursor:pointer;display:block;width:34px;height:44px"; el.innerHTML = `