Merge pull request #8490 from MarquesDeAzevedo/patch-1

WMTS getCapabilities readCoodinates more than one whitespace delimiter
This commit is contained in:
Andreas Hocevar
2018-08-07 10:46:28 +02:00
committed by GitHub

View File

@@ -340,7 +340,7 @@ function readLegendUrl(node, objectStack) {
* @return {Object|undefined} Coordinates object.
*/
function readCoordinates(node, objectStack) {
const coordinates = readString(node).split(' ');
const coordinates = readString(node).split(/\s+/);
if (!coordinates || coordinates.length != 2) {
return undefined;
}