Add ol.format.XLink

This commit is contained in:
Frederic Junod
2014-02-12 11:31:04 +01:00
parent 13698d0d06
commit 2f53c4a3ad

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');
};