11 lines
350 B
JavaScript
11 lines
350 B
JavaScript
import _ol_format_WMSCapabilities_ from '../src/ol/format/WMSCapabilities.js';
|
|
|
|
var parser = new _ol_format_WMSCapabilities_();
|
|
|
|
fetch('data/ogcsample.xml').then(function(response) {
|
|
return response.text();
|
|
}).then(function(text) {
|
|
var result = parser.read(text);
|
|
document.getElementById('log').innerText = JSON.stringify(result, null, 2);
|
|
});
|