Skip to content
Snippets Groups Projects

feat: Add test page (spatial) with mapserver layer in openlayers map

Merged Lene Wasskog requested to merge feature/gridv-6-mapserver-layer into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -521,13 +521,13 @@ function getUnix(aDate)
}
/**
* Saves a bit of typing. Currently checks if the val is either undefined or null
* Saves a bit of typing. Currently checks if the val is either undefined or null, and if a string == ""
* @param {Object} val
* @returns {Boolean} true if the value is considered empty
*/
function isEmpty(val)
{
return val === undefined || val === null;
return val === undefined || val === null || (typeof val === "string" && val.trim() == "");
}
// Keeping track of maps
Loading