function setLeafletCursor(cursor) {
  let styleTag = document.getElementById('leaflet-cursor-style');
  if (!styleTag) {
    styleTag = document.createElement('style');
    styleTag.id = 'leaflet-cursor-style';
    document.head.appendChild(styleTag);
  }
  styleTag.innerHTML = `.leaflet-interactive { cursor: ${cursor} !important; }`;
}