<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,8 @@ require_once 'Benchmark/Timer.php';
 
 $cache = new Cache_Lite();
 
-if ($data = $cache-&gt;get($_SERVER['REQUEST_URI'])) {
+if ($data = $cache-&gt;get($_SERVER['REQUEST_URI']) &amp;&amp; false) {
+    print &quot;HIT&quot;;
     print $data;
     die();
 }
@@ -38,10 +39,12 @@ foreach ($xml-&gt;Document-&gt;Placemark as $placemark) {
     $marker = new Google_Maps_Marker($coordinate);
     $marker-&gt;setSize('small');
     $marker-&gt;setColor('blue');
+    /*
     $bubble = new Google_Maps_Infowindow($placemark-&gt;description);
     $bubble-&gt;setMarker($marker);
-    $map-&gt;addMarker($marker);
     $map-&gt;addInfowindow($bubble);
+    */
+    $map-&gt;addMarker($marker);
 }
 
 $timer-&gt;setMarker('Markers created');
@@ -55,7 +58,7 @@ $map-&gt;setProperties($_GET);
 $clusterer = Google_Maps_Clusterer::create('distance');
 $map-&gt;setClusterer($clusterer);
 
-$map-&gt;getClusteredMarkers('string', $map-&gt;getBounds());
+//$map-&gt;getClusteredMarkers('string', $map-&gt;getBounds());
 
 $timer-&gt;setMarker('Clustered');
 
@@ -72,7 +75,7 @@ $timer-&gt;stop();
 
 &lt;head&gt;
   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
-  &lt;title&gt;Static Map With KML Data Demo&lt;/title&gt;
+  &lt;title&gt;Clustered Markers With Static Maps Demo&lt;/title&gt;
   &lt;link href=&quot;http://www.appelsiini.net/stylesheets/screen.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
   &lt;link href=&quot;http://www.appelsiini.net/stylesheets/main.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
   &lt;link href=&quot;css/controls.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
@@ -109,7 +112,7 @@ $timer-&gt;stop();
 &lt;div class=&quot;entry&quot;&gt;
 
 	&lt;div class=&quot;entrytitle&quot;&gt;
-		&lt;h2&gt;KML Data With Static Maps&lt;/h2&gt; 
+		&lt;h2&gt;Clustered Markers With Static Maps&lt;/h2&gt; 
 		&lt;h4&gt;There is no JavaScript in this page (except Google Analytics)&lt;/h4&gt;
 	&lt;/div&gt;
     &lt;p&gt;
@@ -118,35 +121,36 @@ $timer-&gt;stop();
     &lt;?php print $map-&gt;toHtml(); ?&gt;
     &lt;br /&gt;&lt;br /&gt;
 	  &lt;p&gt;
-	    Markers and infowindow data comes from &lt;a href=&quot;http://kaskoabi.ergoaitab.ee/ergo2.kml&quot;&gt;KML&lt;/a&gt;.
-	    Zooming and panning works. There is noJavaScript (except Google Analytics) used in this page. 
+	    Markers are created from &lt;a href=&quot;http://www.appelsiini.net/projects/php_google_maps/cities.kml&quot;&gt;KML&lt;/a&gt;. Markers are clustered using
+	    &lt;a href=&quot;#&quot;&gt;distance based clustering&lt;/a&gt;.
+	    Zooming and panning works. There is no JavaScript (except Google Analytics) used in this page. 
 	    Map is created using following code:
 	  &lt;/p&gt;
 	  &lt;p&gt;
       &lt;pre&gt;require_once 'Google/Maps.php';
 
+require_once 'Google/Maps.php';
 $map = Google_Maps::create('static');
 
-$map-&gt;setKey(API_KEY);
-$map-&gt;setSize('540x300');
+$map-&gt;setKey(API_KEY);$map-&gt;setSize('540x300');
 
 $zoom = Google_Maps_Control::create('zoom');
 $map-&gt;addControl($zoom);
 $pan = Google_Maps_Control::create('pan');
 $map-&gt;addControl($pan);
 
-$xml = simplexml_load_file('http://kaskoabi.ergoaitab.ee/ergo2.kml', 
-                            null, LIBXML_NOCDATA);
+$clusterer = Google_Maps_Clusterer::create('distance');
+$map-&gt;setClusterer($clusterer);
+
+$xml = simplexml_load_file('cities.kml', null, LIBXML_NOCDATA);
 
 foreach ($xml-&gt;Document-&gt;Placemark as $placemark) {
     list($longitude, $latitude, $elevation) = 
-         explode(',', $placemark-&gt;Point-&gt;coordinates, 3);
+        explode(',', $placemark-&gt;Point-&gt;coordinates, 3);
     $coordinate = new Google_Maps_Coordinate($latitude, $longitude);
     $marker = new Google_Maps_Marker($coordinate);
-    $bubble = new Google_Maps_Infowindow($placemark-&gt;description);
-    $bubble-&gt;setMarker($marker);
-    $map-&gt;addMarker($marker);
-    $map-&gt;addInfowindow($bubble);
+    $marker-&gt;setSize('small');
+    $marker-&gt;setColor('blue');
 }
 
 $map-&gt;zoomToFit();</diff>
      <filename>cluster.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ef3f09d34aa8a864ef1aac5a7335990e427f386e</id>
    </parent>
  </parents>
  <author>
    <name>Mika Tuupola</name>
    <email>tuupola@appelsiini.net</email>
  </author>
  <url>http://github.com/tuupola/php_google_maps/commit/ffc96941466b4fa6a9ef4d535c336bdc22e0cb53</url>
  <id>ffc96941466b4fa6a9ef4d535c336bdc22e0cb53</id>
  <committed-date>2008-11-04T11:51:55-08:00</committed-date>
  <authored-date>2008-11-04T11:51:55-08:00</authored-date>
  <message>Update cluster demo texts.</message>
  <tree>53896530bb1549ce7ff398c92822d7a8a1acf7c9</tree>
  <committer>
    <name>Mika Tuupola</name>
    <email>tuupola@appelsiini.net</email>
  </committer>
</commit>
