Use OpenLayers.loadURL so that we get the benefit of ProxyHost.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-29 00:32:55 +00:00
parent d2270377ef
commit a6f999970a

View File

@@ -31,8 +31,7 @@ OpenLayers.Layer.Text.prototype =
OpenLayers.Layer.Markers.prototype.initialize.apply(this, arguments);
this.features = new Array();
if (this.location != null) {
new Ajax.Request(this.location,
{ method: 'get', onComplete:this.parseData.bind(this) } );
OpenLayers.loadURL(this.location, null, this, this.parseData);
}
},