Minor improvements: clipping, state management
Warning: potentially very buggy!!
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user