diff --git a/lib/OpenLayers/Layer/Text.js b/lib/OpenLayers/Layer/Text.js index 2f0fa2d71e..20a2fca4a8 100644 --- a/lib/OpenLayers/Layer/Text.js +++ b/lib/OpenLayers/Layer/Text.js @@ -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); } },