OpenLayers OpenLayers

Changeset 1216

Show
Ignore:
Timestamp:
08/15/06 10:11:58 (2 years ago)
Author:
crschmidt
Message:

Change OpenLayers.ProxyHost in Subversion to be null. This means that Ajax
requests will 'just work' if the file is loaded locally (which was only the
case before when using relative URLs). It also means that the examples better
document how to set ProxyHost, since they no longer depend on an undocumented
setting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/LayerSwitcher.html

    r1096 r1216  
    1919        var map, layer, glayer; 
    2020 
     21        OpenLayers.ProxyHost = "/proxy/?url="; 
    2122        function init(){ 
    2223            map = new OpenLayers.Map( $('map') ); 
  • trunk/openlayers/examples/georss.html

    r803 r1216  
    1414        var map, layer; 
    1515 
     16        OpenLayers.ProxyHost = "/proxy/?url="; 
    1617        function init(){ 
    1718            map = new OpenLayers.Map('map', {maxResolution:'auto'}); 
     
    2223            map.addControl(new OpenLayers.Control.LayerSwitcher()); 
    2324        } 
    24    function addUrl() { 
    25        var value = $('url').value; 
    26        var parts = value.split("/"); 
    27             var newl = new OpenLayers.Layer.GeoRSS( parts[parts.length-1], value); 
    28             map.addLayer(newl); 
    29        $("url").value = ""; 
    30    
     25        function addUrl() { 
     26            var value = $('url').value; 
     27            var parts = value.split("/"); 
     28                var newl = new OpenLayers.Layer.GeoRSS( parts[parts.length-1], value); 
     29                map.addLayer(newl); 
     30            $("url").value = ""; 
     31       
    3132        // --> 
    3233    </script> 
  • trunk/openlayers/lib/OpenLayers/Ajax.js

    r1013 r1216  
    33 * text of the license. */ 
    44 
    5 OpenLayers.ProxyHost = "/proxy/?url="; 
     5OpenLayers.ProxyHost = ""; 
    66//OpenLayers.ProxyHost = "examples/proxy.cgi?url="; 
    77