Refactor GeoRSS Layer to support 'real' GeoRSS :) (geo:lat, geo:lon).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-27 04:04:41 +00:00
parent d7bb634cce
commit 067bbb5d75
2 changed files with 18 additions and 11 deletions

View File

@@ -14,13 +14,14 @@
var map, layer;
function init(){
OpenLayers.ProxyHost = '/proxy/';
map = new OpenLayers.Map('map', {maxResolution:'auto'});
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
var newl = new OpenLayers.Layer.GeoRSS( "text", "./georss.xml" );
var newl = new OpenLayers.Layer.GeoRSS( "text", "http://earthquake.usgs.gov/eqcenter/recenteqsww/catalogs/eqs7day-M2.5.xml" );
map.addLayer(newl);
map.setCenter(new OpenLayers.LonLat(0, 0), 0);