OpenLayers OpenLayers

Changeset 7433

Show
Ignore:
Timestamp:
06/23/08 13:38:20 (5 months ago)
Author:
tschaub
Message:

proxy switch and anonymous strategy

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-behavior/examples/strategy-cluster.html

    r7432 r7433  
    6666        <script src="animator.js"></script> 
    6767        <script type="text/javascript"> 
    68             var map, photos, cluster
     68            var map, template, target
    6969            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 
    7273            function init() { 
    73                 OpenLayers.ProxyHost= "proxy.cgi?url="; 
    7474                map = new OpenLayers.Map('map', { 
    7575                    restrictedExtent: new OpenLayers.Bounds(-180, -90, 180, 90) 
     
    9797                }); 
    9898 
    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                    ], 
    103104                    protocol: new OpenLayers.Protocol.HTTP({ 
    104105                        url: "http://labs.metacarta.com/flickrbrowse/flickr.py/flickr",