Minor improvements: clipping, state management

Warning: potentially very buggy!!
This commit is contained in:
2025-12-31 19:50:36 +01:00
parent bc703623e8
commit db689c0fa3
4 changed files with 185 additions and 85 deletions

View File

@@ -26,7 +26,6 @@ Map.init = function(mapContainerId) {
//const markerIcon = L.divIcon({className: 'bi bi-bank text-large'});
config.markers.forEach(marker => {
debugger;
const popup = this.domParser.parseFromString(marker.popup, 'text/html')
.querySelector('div');
popup.querySelector('button').onclick = () => {
@@ -37,10 +36,6 @@ Map.init = function(mapContainerId) {
L.marker(marker.coords,).addTo(map)
.bindPopup(popup, {autoClose:false, /*closeOnClick:false*/})
.togglePopup();
// Update state
AppState.scenes.push({id: marker.id, active: false});
});
AppState.map = map;