Move ol/format/xlinkformat.js to ol/format/xlink.js

This commit is contained in:
Tim Schaub
2016-08-06 11:33:12 -06:00
parent 62403c5780
commit db6fa60937
+17
View File
@@ -0,0 +1,17 @@
goog.provide('ol.format.XLink');
/**
* @const
* @type {string}
*/
ol.format.XLink.NAMESPACE_URI = 'http://www.w3.org/1999/xlink';
/**
* @param {Node} node Node.
* @return {boolean|undefined} Boolean.
*/
ol.format.XLink.readHref = function(node) {
return node.getAttributeNS(ol.format.XLink.NAMESPACE_URI, 'href');
};