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:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user