From f11d466ff02f5ec61ebf892da85499c51b9bbeb1 Mon Sep 17 00:00:00 2001 From: lrullo Date: Mon, 27 Dec 2021 17:50:53 +0100 Subject: [PATCH] Fix: Add timeout for wait metabox width --- js/soundmap.add.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/soundmap.add.js b/js/soundmap.add.js index 9fc994b..53deb68 100644 --- a/js/soundmap.add.js +++ b/js/soundmap.add.js @@ -116,7 +116,10 @@ $(document).ready(function(){ console.log($('#map_canvas').width()); - soundmap.initMap(); + // Add Timeout for wait load metabox + setTimeout(function() { + soundmap.initMap(); + }, 3000); }); }(jQuery));