use Directory instead of Location to allow vhost overlay
[google-map-tiles.git] / koha.html
index 7bbc536..6867b16 100644 (file)
--- a/koha.html
+++ b/koha.html
@@ -4,7 +4,7 @@
   <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
   <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
   <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
-  <title>World Volcanoes</title>
+  <title>Where are our books comming from?</title>
   <script type="text/javascript">
   //<![CDATA[
 
@@ -26,7 +26,7 @@
    // Load the map...
 
    function initialize() {
-    var myLatlng = new google.maps.LatLng(35,-95);
+    var myLatlng = new google.maps.LatLng(45,15);
 
     // Create the volcano tile layer...
 
@@ -37,7 +37,7 @@
       if (x < 0) {
        x += n;
       } 
-      return "tiles/tileserver.pl?Z=" + zoom + "&X=" + x + "&Y=" + tile.y ;
+      return "koha/tiles/" + zoom + "/v_" + x + "_" + tile.y + ".png";
      },
      tileSize: new google.maps.Size(256, 256),
      opacity:1,
@@ -51,7 +51,7 @@
     // Map options...
 
     var myOptions = {
-      zoom: 4,
+      zoom: 6,
       scrollwheel: false,
       center: myLatlng,
       mapTypeId: google.maps.MapTypeId.TERRAIN
      mapdiv.style.width = '100%';
      mapdiv.style.height = '100%';
     } else {     
-     mapdiv.style.width = '1024px';
-     mapdiv.style.height = '768px';
+/*
+     mapdiv.style.width = '800px';
+     mapdiv.style.height = '600px';
+*/
+     mapdiv.style.width = '100%';
+     mapdiv.style.height = '100%';
     }
    }
 
    {
     var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest;
     var parms = "POINT=" + point.toUrlValue() + "&ZOOM=" + map.getZoom() ;
-    request.open("POST", "volcano.pl", true);
+    request.open("POST", "koha.pl", true);
     request.setRequestHeader('Content-Type','application/x-www-form-urlencoded') ;     // Thanks to Darkstar 3D!
     request.onreadystatechange = function() 
     {