Seitenkarten auf MapLibre GL (Facade) — Runde 1: Giftköder + Verlorene

- map-gl-mini.js: Leaflet-kompatible MapLibre-Facade (createMap/svgMarker/circleMarker/
  featureGroup-Wrapper mit setView/fitBounds/invalidateSize/addTo/bindPopup/openPopup/on/remove)
- ui.js: UI.map.create/svgMarker/leafletMarker branchen auf GL (by_map_gl, Staging-Default),
  + UI.map.circleMarker/featureGroup, loadMapLibreUI
- poison.js/lost.js: window.L-Guards entfernt, L.circleMarker→UI.map.circleMarker
This commit is contained in:
rene 2026-06-05 12:33:01 +02:00
parent 9c4b999331
commit 5844f1ef51
9 changed files with 239 additions and 25 deletions

View file

@ -178,9 +178,9 @@ window.Page_lost = (() => {
}
function _showUserOnMap() {
if (!_map || !window.L || !_userPos) return;
if (!_map || !_userPos) return;
if (_userMarker) _map.removeLayer(_userMarker);
_userMarker = L.circleMarker([_userPos.lat, _userPos.lon], {
_userMarker = UI.map.circleMarker(_userPos.lat, _userPos.lon, {
radius : 9,
fillColor : '#3498db',
color : '#fff',
@ -266,7 +266,7 @@ window.Page_lost = (() => {
// KARTEN-MARKER
// ----------------------------------------------------------
function _renderMarkers() {
if (!_map || !window.L) return;
if (!_map) return;
_markers.forEach(m => _map.removeLayer(m));
_markers = [];

View file

@ -143,9 +143,9 @@ window.Page_poison = (() => {
}
function _showUserOnMap() {
if (!_map || !window.L || !_userPos) return;
if (!_map || !_userPos) return;
if (_userMarker) _map.removeLayer(_userMarker);
_userMarker = L.circleMarker([_userPos.lat, _userPos.lon], {
_userMarker = UI.map.circleMarker(_userPos.lat, _userPos.lon, {
radius : 9,
fillColor : '#3498db',
color : '#fff',
@ -201,7 +201,7 @@ window.Page_poison = (() => {
// KARTEN-MARKER
// ----------------------------------------------------------
function _renderMarkers() {
if (!_map || !window.L) return;
if (!_map) return;
_markers.forEach(m => _map.removeLayer(m));
_markers = [];