openlayers
Version:
Build tools and sources for developing OpenLayers based mapping applications
11 lines (8 loc) • 321 B
JavaScript
goog.require('ol.format.WMTSCapabilities');
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);
});