Files
openlayers/examples/wmts-capabilities.js
Tim Schaub 7f47883c48 Transformed
2017-12-12 06:53:18 -07:00

11 lines
360 B
JavaScript

import _ol_format_WMTSCapabilities_ from '../src/ol/format/WMTSCapabilities.js';
var parser = new _ol_format_WMTSCapabilities_();
fetch('data/WMTSCapabilities.xml').then(function(response) {
return response.text();
}).then(function(text) {
var result = parser.read(text);
document.getElementById('log').innerText = JSON.stringify(result, null, 2);
});