Use ol.xml.isDocument in ol.format.KML
This commit is contained in:
1 parent
99aa9f207d
commit
cd7df92891
1 file changed
+2
-2
@@ -1575,8 +1575,8 @@ ol.format.KML.prototype.readFeaturesFromNode = function(node) {
|
||||
* @todo stability experimental
|
||||
*/
|
||||
ol.format.KML.prototype.readName = function(source) {
|
||||
if (source instanceof Document) {
|
||||
return this.readNameFromDocument(source);
|
||||
if (ol.xml.isDocument(source)) {
|
||||
return this.readNameFromDocument(/** @type {Document} */ (source));
|
||||
} else if (source instanceof Node) {
|
||||
return this.readNameFromNode(source);
|
||||
} else if (goog.isString(source)) {
|
||||
|
||||
Reference in new issue
Block a user