WMTS getCapabilities readCoodinates more than one whitespace delimiter
combine split and replace
This commit is contained in:
1 parent
654073cd3d
commit
47c4e1a165
1 file changed
+1
-1
@@ -340,7 +340,7 @@ function readLegendUrl(node, objectStack) {
|
||||
* @return {Object|undefined} Coordinates object.
|
||||
*/
|
||||
function readCoordinates(node, objectStack) {
|
||||
const coordinates = readString(node).replace(/\s\s+/g, ' ').split(' ');
|
||||
const coordinates = readString(node).split(/\s+/g);
|
||||
if (!coordinates || coordinates.length != 2) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user