summaryrefslogtreecommitdiff
path: root/resources/views/modules/pedigree-map/chart.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-11-24 10:26:59 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-11-24 10:45:48 +0000
commitb2e5f20ea75b7378d8949eac2d8ec43fb9552b6f (patch)
tree84ced612ae554c839118a803c752214d1a1a1e24 /resources/views/modules/pedigree-map/chart.phtml
parent945239dddc2bf43174407fa42cf385fcfda2196a (diff)
downloadwebtrees-b2e5f20ea75b7378d8949eac2d8ec43fb9552b6f.tar.gz
webtrees-b2e5f20ea75b7378d8949eac2d8ec43fb9552b6f.tar.bz2
webtrees-b2e5f20ea75b7378d8949eac2d8ec43fb9552b6f.zip
Merge #4605 - create undo icon for maps
Diffstat (limited to 'resources/views/modules/pedigree-map/chart.phtml')
-rw-r--r--resources/views/modules/pedigree-map/chart.phtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/views/modules/pedigree-map/chart.phtml b/resources/views/modules/pedigree-map/chart.phtml
index 81d9065ae3..9e853f5c66 100644
--- a/resources/views/modules/pedigree-map/chart.phtml
+++ b/resources/views/modules/pedigree-map/chart.phtml
@@ -40,8 +40,11 @@ use Fisharebest\Webtrees\View;
/**
* Passed to resetControl to
* perform necessary reset actions on map
+ *
+ * @param {Event} event
*/
- let resetCallback = function () {
+ let resetCallback = function (event) {
+ event.preventDefault();
map.flyToBounds(markers.getBounds(), {padding: [50, 30], maxZoom: 15 });
sidebar.firstElementChild.scrollIntoView(scrollOptions);
}