Changeset 7433
- Timestamp:
- 06/23/08 13:38:20 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/vector-behavior/examples/strategy-cluster.html
r7432 r7433 66 66 <script src="animator.js"></script> 67 67 <script type="text/javascript"> 68 var map, photos, cluster;68 var map, template, target; 69 69 var Jugl = window["http://jugl.tschaub.net/trunk/lib/Jugl.js"]; 70 var template, target; 71 70 OpenLayers.ProxyHost = (window.location.host == "localhost") ? 71 "/cgi-bin/proxy.cgi?url=" : "proxy.cgi?url="; 72 72 73 function init() { 73 OpenLayers.ProxyHost= "proxy.cgi?url=";74 74 map = new OpenLayers.Map('map', { 75 75 restrictedExtent: new OpenLayers.Bounds(-180, -90, 180, 90) … … 97 97 }); 98 98 99 cluster = new OpenLayers.Strategy.Cluster(); 100 101 photos = new OpenLayers.Layer.Vector("Photos", { 102 strategies: [new OpenLayers.Strategy.Fixed(), cluster], 99 var photos = new OpenLayers.Layer.Vector("Photos", { 100 strategies: [ 101 new OpenLayers.Strategy.Fixed(), 102 new OpenLayers.Strategy.Cluster() 103 ], 103 104 protocol: new OpenLayers.Protocol.HTTP({ 104 105 url: "http://labs.metacarta.com/flickrbrowse/flickr.py/flickr",
