|
@ -55,6 +55,10 @@ export default class extends Controller { |
|
|
layer2.on('popupopen', function (event) { |
|
|
layer2.on('popupopen', function (event) { |
|
|
var element = event.popup.options.overpassElement; |
|
|
var element = event.popup.options.overpassElement; |
|
|
delete element.members; |
|
|
delete element.members; |
|
|
|
|
|
element['map'] = { |
|
|
|
|
|
'center': map.getCenter(), |
|
|
|
|
|
'zoom': map.getZoom(), |
|
|
|
|
|
}; |
|
|
fetch(_this.popupUrlValue + '?' + (new URLSearchParams({ |
|
|
fetch(_this.popupUrlValue + '?' + (new URLSearchParams({ |
|
|
'element': JSON.stringify(element), |
|
|
'element': JSON.stringify(element), |
|
|
}))) |
|
|
}))) |
|
@ -111,6 +115,6 @@ export default class extends Controller { |
|
|
}).addTo(map); |
|
|
}).addTo(map); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
map.fitBounds(layer.getBounds()); |
|
|
|
|
|
|
|
|
map.fitBounds(layer1.getBounds()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |