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