I was under the impression that it was.
Here is my example:
<html lang='en'>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>GeoRSS</title>
<script src="http://maps.google.com/maps/api/js?v=3.5&sensor=false"></script>
<script src="http://openlayers.org/api/OpenLayers.js"></script>
<script src="google-v3.js"></script>
<script type="text/javascript">
var map;
function init() {
var restrictedExtent = new OpenLayers.Bounds(-180, -90, 180, 90);
map = new OpenLayers.Map("map_element"
);
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.LayerSwitcher());
var layer = new OpenLayers.Layer.Google("Google", {"sphericalMercator": true});
var usgs = new OpenLayers.Layer.Vector("Earthquakes", {
projection: new OpenLayers.Projection("EPSG:4326"),
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "http://earthquake.usgs.gov/earthquakes/catalogs/7day-M2.5.xml",
format: new OpenLayers.Format.GeoRSS()
})
});
map.addLayers([layer, usgs]);
map.setCenter(new OpenLayers.LonLat(-11682133.90525, 4676768.13795), 4);
}
</script>
</head>
<body onload="init()">
<div id="map_element">
</div>
</body>
</html>
For me this is only working on IE. I would like to keep this xml file on the USGS server and call it dynamically rather than save it locally. Is there anyway to get this to work, on other browsers (besides IE) without using a proxy script?
Thanks!