Changeset 1216
- Timestamp:
- 08/15/06 10:11:58 (2 years ago)
- Files:
-
- trunk/openlayers/examples/LayerSwitcher.html (modified) (1 diff)
- trunk/openlayers/examples/georss.html (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Ajax.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/LayerSwitcher.html
r1096 r1216 19 19 var map, layer, glayer; 20 20 21 OpenLayers.ProxyHost = "/proxy/?url="; 21 22 function init(){ 22 23 map = new OpenLayers.Map( $('map') ); trunk/openlayers/examples/georss.html
r803 r1216 14 14 var map, layer; 15 15 16 OpenLayers.ProxyHost = "/proxy/?url="; 16 17 function init(){ 17 18 map = new OpenLayers.Map('map', {maxResolution:'auto'}); … … 22 23 map.addControl(new OpenLayers.Control.LayerSwitcher()); 23 24 } 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 } 31 32 // --> 32 33 </script> trunk/openlayers/lib/OpenLayers/Ajax.js
r1013 r1216 3 3 * text of the license. */ 4 4 5 OpenLayers.ProxyHost = " /proxy/?url=";5 OpenLayers.ProxyHost = ""; 6 6 //OpenLayers.ProxyHost = "examples/proxy.cgi?url="; 7 7
