[Mapbender-commits] r10352 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Nov 22 02:19:27 PST 2019


Author: armin11
Date: 2019-11-22 02:19:26 -0800 (Fri, 22 Nov 2019)
New Revision: 10352

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
Workaround to prohibit error when using digitize_widget in combination with metadataCarousel - give some time to load makiicons via ajax

Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2019-11-21 10:38:46 UTC (rev 10351)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2019-11-22 10:19:26 UTC (rev 10352)
@@ -248,7 +248,6 @@
                 dig.isPaused = false;
             }
         });
-
         var create = function() {
             $.ajax({
                 url: '../extensions/makiicons/selection.json',
@@ -256,7 +255,8 @@
                 dataType: 'json',
                 success: function(data) {
                     icons = data;
-                    var kml = $('#mapframe1').data('kml');
+                    //workaround for loading with metadataCarousel
+                    setTimeout("var kml = $('#mapframe1').data('kml')", 2000);
                     kml.icons = icons;
                 }
             });



More information about the Mapbender_commits mailing list