From 2e372d52390addb306b5380cce8d1470c2d89ebb Mon Sep 17 00:00:00 2001 From: Luca Rullo Date: Sun, 18 Dec 2022 23:42:43 +0000 Subject: [PATCH] Fix: Show Audio file && Show shortcode --- js/soundmap.front.js | 2 +- soundmap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/soundmap.front.js b/js/soundmap.front.js index 323899f..a38561d 100644 --- a/js/soundmap.front.js +++ b/js/soundmap.front.js @@ -97,7 +97,7 @@ layer.on('click', self.onMarkerClick); } }).addTo(this.map); - this.map.fitBounds(this.markers.getBounds()); + if (this.markers.getBounds()) this.map.fitBounds(this.markers.getBounds()); }, ajaxFail: function(){ diff --git a/soundmap.php b/soundmap.php index c00aa62..90d8214 100644 --- a/soundmap.php +++ b/soundmap.php @@ -126,7 +126,7 @@ if (!class_exists('Soundmap')){
{$data['title']}

Borrar
"; }