From a6f999970a3e7e091d8fab584fe9b8efc466bca1 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 29 Jun 2006 00:32:55 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Layer/Text.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } },