diff plugins/content_types/mpiwg_geobrowser_map.inc @ 3:19f75fe342eb

minor changes
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Mon, 12 Oct 2015 08:33:28 +0200
parents b57c7821382f
children
line wrap: on
line diff
--- a/plugins/content_types/mpiwg_geobrowser_map.inc	Thu May 28 10:28:12 2015 +0200
+++ b/plugins/content_types/mpiwg_geobrowser_map.inc	Mon Oct 12 08:33:28 2015 +0200
@@ -22,6 +22,11 @@
     $block->content .= '
         <div id="mapContainerDiv" style="position:relative;"></div>
         <script type="text/javascript">
+    
+    if (typeof MapWidget_l=="undefined")
+	    {
+         
+
             var mapInitiliazedEvent = new Event("mpiwg_geobrowser_map_initiliazed");
             var map = null;
             var mapWidget = null;
@@ -42,6 +47,9 @@
                     document.dispatchEvent(widgetLoadedEvent);
                 }
             });
+
+ 	    MapWidget_l=true;
+	    }
         </script>
     ';