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