Mercurial > hg > mpiwg_geobrowser
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:b57c7821382f | 1:ea066ce001bd |
---|---|
20 | 20 |
21 // Add in the content | 21 // Add in the content |
22 $block->content .= ' | 22 $block->content .= ' |
23 <div id="mapContainerDiv" style="position:relative;"></div> | 23 <div id="mapContainerDiv" style="position:relative;"></div> |
24 <script type="text/javascript"> | 24 <script type="text/javascript"> |
25 | |
26 if (typeof MapWidget_l=="undefined") | |
27 { | |
28 | |
29 | |
25 var mapInitiliazedEvent = new Event("mpiwg_geobrowser_map_initiliazed"); | 30 var mapInitiliazedEvent = new Event("mpiwg_geobrowser_map_initiliazed"); |
26 var map = null; | 31 var map = null; |
27 var mapWidget = null; | 32 var mapWidget = null; |
28 var mpiwg_geobrowser_mapInitialized = false; | 33 var mpiwg_geobrowser_mapInitialized = false; |
29 mpiwg_geobrowser_widgetsCount++; | 34 mpiwg_geobrowser_widgetsCount++; |
40 } | 45 } |
41 mpiwg_geobrowser_mapInitialized = true; | 46 mpiwg_geobrowser_mapInitialized = true; |
42 document.dispatchEvent(widgetLoadedEvent); | 47 document.dispatchEvent(widgetLoadedEvent); |
43 } | 48 } |
44 }); | 49 }); |
50 | |
51 MapWidget_l=true; | |
52 } | |
45 </script> | 53 </script> |
46 '; | 54 '; |
47 | 55 |
48 return $block; | 56 return $block; |
49 } | 57 } |