Mercurial > hg > mpiwg_geobrowser
comparison plugins/content_types/mpiwg_geobrowser_overlay.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 |
comparison
equal
deleted
inserted
replaced
0:b57c7821382f | 3:19f75fe342eb |
---|---|
21 // Add in the content | 21 // Add in the content |
22 $block->content .= ' | 22 $block->content .= ' |
23 Overlay: | 23 Overlay: |
24 <div id="overlayContainerDiv" style="position:relative;"></div> | 24 <div id="overlayContainerDiv" style="position:relative;"></div> |
25 <script type="text/javascript"> | 25 <script type="text/javascript"> |
26 if (typeof OverlayloaderWidget_l=="undefined") | |
27 { | |
28 | |
29 | |
26 var overlayDiv = document.getElementById("overlayContainerDiv"); | 30 var overlayDiv = document.getElementById("overlayContainerDiv"); |
27 var overlay = new WidgetWrapper(); | 31 var overlay = new WidgetWrapper(); |
28 var overlayWidget = new OverlayloaderWidget(overlayloader,overlayDiv); | 32 var overlayWidget = new OverlayloaderWidget(overlayloader,overlayDiv); |
29 jq1110(document).ready(function() { | 33 jq1110(document).ready(function() { |
30 document.addEventListener("mpiwg_geobrowser_map_initiliazed", function (e) { | 34 document.addEventListener("mpiwg_geobrowser_map_initiliazed", function (e) { |
31 if (overlayDiv) { | 35 if (overlayDiv) { |
32 overlayloaderWidget.attachMapWidget(mapWidget); | 36 overlayloaderWidget.attachMapWidget(mapWidget); |
33 } | 37 } |
34 }, false); | 38 }, false); |
35 }); | 39 }); |
40 OverlayloaderWidget_l = true; | |
41 } | |
36 </script> | 42 </script> |
37 '; | 43 '; |
38 | 44 |
39 return $block; | 45 return $block; |
40 } | 46 } |