No need for ProxyHost to be in Format.KML directly anymore, since #1350
adds it to Ajax.Request. Thanks, rdewit. r=me (Closes #1354) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -249,19 +249,12 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
*
|
||||
*/
|
||||
fetchLink: function(href) {
|
||||
|
||||
if (OpenLayers.ProxyHost
|
||||
&& OpenLayers.String.startsWith(href, "http")) {
|
||||
href = OpenLayers.ProxyHost + escape(href);
|
||||
}
|
||||
|
||||
var request = new OpenLayers.Ajax.Request(href,
|
||||
{method: 'get', asynchronous: false });
|
||||
|
||||
if (request && request.transport) {
|
||||
return request.transport.responseText;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user