WMS capabilities parsing with new extent structure

This commit is contained in:
Tim Schaub
2013-09-03 17:46:47 -06:00
parent 5d18da4035
commit 7d00159bff
5 changed files with 22 additions and 16 deletions

View File

@@ -31,12 +31,13 @@ ol.parser.ogc.WMSCapabilities_v1 = function() {
},
'BoundingBox': function(node, obj) {
var bbox = {};
bbox['bbox'] = [
bbox['bbox'] = [[
parseFloat(node.getAttribute('minx')),
parseFloat(node.getAttribute('miny')),
parseFloat(node.getAttribute('miny'))
], [
parseFloat(node.getAttribute('maxx')),
parseFloat(node.getAttribute('maxy'))
];
]];
var res = {
x: parseFloat(node.getAttribute('resx')),
y: parseFloat(node.getAttribute('resy'))

View File

@@ -47,12 +47,13 @@ ol.parser.ogc.WMSCapabilities_v1_1 = function() {
obj['userSymbols'] = userSymbols;
},
'LatLonBoundingBox': function(node, obj) {
obj['llbbox'] = [
obj['llbbox'] = [[
parseFloat(node.getAttribute('minx')),
parseFloat(node.getAttribute('miny')),
parseFloat(node.getAttribute('miny'))
], [
parseFloat(node.getAttribute('maxx')),
parseFloat(node.getAttribute('maxy'))
];
]];
},
'BoundingBox': function(node, obj) {
var bbox = bboxreader.apply(this, arguments);