Convert WMS examples to strapless template

This commit is contained in:
Tim Schaub
2015-11-17 09:56:33 -07:00
parent 9a35c08300
commit a94a00de1d
9 changed files with 31 additions and 61 deletions

View File

@@ -2,7 +2,9 @@ goog.require('ol.format.WMSCapabilities');
var parser = new ol.format.WMSCapabilities();
$.ajax('data/ogcsample.xml').then(function(response) {
var result = parser.read(response);
$('#log').html(window.JSON.stringify(result, null, 2));
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);
});