Mercurial > hg > mpiwg_geobrowser
diff plugins/content_types/mpiwg_geobrowser_map.inc @ 1:ea066ce001bd
bug fixes, works now without admin rights
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 29 May 2015 13:59:32 +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 Fri May 29 13:59:32 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> ';