Convert WMTS examples to strapless template

This commit is contained in:
Tim Schaub
2015-11-17 10:02:10 -07:00
parent a94a00de1d
commit c463321643
10 changed files with 40 additions and 65 deletions
+4 -2
View File
@@ -8,8 +8,10 @@ goog.require('ol.source.WMTS');
var parser = new ol.format.WMTSCapabilities();
var map;
$.ajax('data/WMTSCapabilities.xml').then(function(response) {
var result = parser.read(response);
fetch('data/WMTSCapabilities.xml').then(function(response) {
return response.text();
}).then(function(text) {
var result = parser.read(text);
var options = ol.source.WMTS.optionsFromCapabilities(result,
{layer: 'layer-7328', matrixSet: 'EPSG:3857'});