[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/events/info/conference2006
From:       Marcus Furlong <furlongm () gmail ! com>
Date:       2006-08-23 18:17:31
Message-ID: 1156357051.594907.5871.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 576293 by furlongm:

update google map


 A             organization/map.js  
 M  +9 -71     organization/map.php  
 M  +2 -1      site-header.inc  


--- trunk/www/areas/events/info/conference2006/organization/map.php #576292:576293
@@ -1,81 +1,19 @@
 <?php
   $page_title = 'aKademy Dublin Map'; 
   $site_root='../';
+  $body_onload='mapLoad();';
+  $body_onunload='GUnload();';
   include "header.inc";
 ?>
 
-<img src="../images/label_maps.png" class="label" alt="[akademy2006-map]" />
+  <img src="../images/label_maps.png" class="label" alt="[akademy2006-map]" /
+  <p>This map contains the various locations that are of interest to aKademy \
participants. Click on the following buttons to show the location, and related \
information.</p> +  <br clear="all" />
+  <div id="placelinks"></div><br clear="all" /><br /> 
+  <div id="map" style="width: 550px; height: 550px"></div>
+<!-- Uncomment the following line to display the current coordinates of the map \
centre --> +<!--  <div id="message"></div>  -->
 
-    <p>This map contains the various locations that are of interest to aKademy \
                participants.</p>
-    <div id="placelinks"></div><br />
-    <div id="map" style="width: 550px; height: 550px"></div>
-<!-- uncomment to pinpoint locations    <div id="message"></div> -->
-    <script type="text/javascript">
-    //<![CDATA[
-        if (GBrowserIsCompatible()) {
-          var map = new GMap2(document.getElementById("map"));
-	  GEvent.addListener(map, "moveend", function() {
-          var center = map.getCenter();
-          document.getElementById("message").innerHTML = center.toString();
-        });
-
-        var placelinks_html = "";
-        var gmarkers = [];
-        var htmls = [];
-        var i = 0;
-
-        map.addControl(new GLargeMapControl());
-        map.addControl(new GMapTypeControl());
-	map.addControl(new GScaleControl());
-        map.setCenter(new GLatLng(53.3438903986638, -6.251006126403809), 17, \
                G_HYBRID_MAP);
-
-	// Creates an overlay and a marker at the given point with the given label
-	function createMarker(name, point, info) {
-	  var marker = new GMarker(point);
-	  GEvent.addListener(marker, "click", function() {
-	    marker.openInfoWindowHtml(info);
-	  });
-          // save the info we need to use later for the sidebar
-          gmarkers[i] = marker;
-          htmls[i] = info;
-          // add a line to the sidebar html
-          placelinks_html += '<a href="javascript:myclick(' + i + ')">' + name + \
                '</a><br>';
-          i++;
-          return marker;
-	}
-
-	// This function picks up the click and opens the corresponding info window
-        function myclick(i) {
-          gmarkers[i].openInfoWindowHtml(htmls[i]);
-        }
-
-	var name_lloyd = "Lloyd Building";
-	var point_lloyd = new GLatLng(53.34375588860382, -6.251091957092285);
-	var text_lloyd = "<b>Lloyd Building</b><ul><li>aKademy Information \
Desk</li><li>Contributors Conference</li><li>e.V. General Assembly</li><li>Small \
                Conference/Press Room</li><li>BoF Sessions</li></ul>";
-	map.addOverlay(createMarker(name_lloyd, point_lloyd, text_lloyd));
-
-	var name_ictlabs = "ICT Labs";
-	var point_ictlabs = new GLatLng(53.34341000364401, -6.251167058944702);
-	var text_ictlabs = "<b>ICT Labs</b><ul><li>Coding Marathon</li></ul>";
-	map.addOverlay(createMarker(name_ictlabs, point_ictlabs, text_ictlabs));
-
-	var name_hostel = "Isaacs Hostel";
-	var point_hostel = new GLatLng(53.34998133810203, -6.253441572189331);
-	var text_hostel = "<b><a href='http://www.isaacs.ie/isaacs_hostel'>Isaacs \
                Hostel</a></b><br />Official aKademy Accommodation";
-	map.addOverlay(createMarker(name_hostel, point_hostel, text_hostel));
-
-        var name_google = "Google HQ Ireland";
-	var point_google = new GLatLng(53.339771636315405, -6.236447095870972);
-        var text_google = "<b><a href='http://www.google.ie/jobs'>Google HQ \
Ireland</a></b><br />Google Open House<br />Google is kindly hosting this event,<br \
/>which will be hosted from 6pm on<br /> Monday 25th September for all<br />aKademy \
                participants";
-        map.addOverlay(createMarker(name_google, point_google, text_google));
-
-        document.getElementById("placelinks").innerHTML = placelinks_html;
-
-      }
-
-    //]]>
-    </script>
-
 <?php
   include "footer.inc";
 ?>
--- trunk/www/areas/events/info/conference2006/site-header.inc #576292:576293
@@ -1,3 +1,4 @@
 <?php if (basename ($_SERVER ['REQUEST_URI']) == "map.php") { ?>
 <script type="text/javascript" \
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAArwu8UOy__4TSZA-YPJpnXRRhK7jz0Wwmi1gON30I5PaTQzuAhBSNmrfjQPkKHmtDyBcPItBDj1jxyA" \
                />
-<?php } ?>
\ No newline at end of file
+<script type="text/javascript" \
src="http://conference2006.kde.org/organization/map.js" /> +<?php } ?>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic