Named exports from ol/format/XLink

This commit is contained in:
Frederic Junod
2018-02-14 10:47:25 +01:00
parent 4f358f018b
commit 1953d41d0d
4 changed files with 11 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
* @module ol/format/OWS
*/
import {inherits} from '../index.js';
import XLink from '../format/XLink.js';
import {readHref} from '../format/XLink.js';
import XML from '../format/XML.js';
import XSD from '../format/XSD.js';
import {makeObjectPropertyPusher, makeObjectPropertySetter, makeStructureNS, pushParseAndPop} from '../xml.js';
@@ -193,7 +193,7 @@ const SERVICE_PROVIDER_PARSERS =
makeStructureNS(
NAMESPACE_URIS, {
'ProviderName': makeObjectPropertySetter(XSD.readString),
'ProviderSite': makeObjectPropertySetter(XLink.readHref),
'ProviderSite': makeObjectPropertySetter(readHref),
'ServiceContact': makeObjectPropertySetter(
readServiceContact)
});
@@ -288,7 +288,7 @@ function readDcp(node, objectStack) {
* @return {Object|undefined} The GET object.
*/
function readGet(node, objectStack) {
const href = XLink.readHref(node);
const href = readHref(node);
if (!href) {
return undefined;
}