save the resourceUrl elements into the WMTS capabilities object. r=bartvde (closes #2986)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -191,7 +191,14 @@ OpenLayers.Format.WMTSCapabilities.v1_0_0 = OpenLayers.Class(
|
||||
},
|
||||
"MatrixHeight": function(node, obj) {
|
||||
obj.matrixHeight = parseInt(this.getChildValue(node));
|
||||
},
|
||||
},
|
||||
"ResourceURL": function(node, obj) {
|
||||
obj.resourceUrl = obj.resourceUrl || {};
|
||||
obj.resourceUrl[node.getAttribute("resourceType")] = {
|
||||
format: node.getAttribute("format"),
|
||||
template: node.getAttribute("template")
|
||||
};
|
||||
},
|
||||
// not used for now, can be added in the future though
|
||||
/*"Themes": function(node, obj) {
|
||||
obj.themes = [];
|
||||
|
||||
Reference in New Issue
Block a user