Use ol.xml.load in ol.source.VectorFile
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
goog.provide('ol.source.VectorFile');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.dom.xml');
|
||||
goog.require('goog.net.XhrIo');
|
||||
goog.require('ol.format.FormatType');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.State');
|
||||
goog.require('ol.source.Vector');
|
||||
goog.require('ol.xml');
|
||||
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ ol.source.VectorFile.prototype.handleXhrIo_ = function(event) {
|
||||
} else if (type == ol.format.FormatType.XML) {
|
||||
source = xhrIo.getResponseXml();
|
||||
if (goog.isNull(source)) {
|
||||
source = goog.dom.xml.loadXml(xhrIo.getResponseText());
|
||||
source = ol.xml.load(xhrIo.getResponseText());
|
||||
}
|
||||
} else {
|
||||
goog.asserts.fail();
|
||||
|
||||
Reference in New Issue
Block a user