diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-08-09 15:11:39 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-08-09 15:11:39 +0100 |
commit | 222d16ec10e8887acb467b9f827fd6b8f8f40b2f (patch) | |
tree | ef01c2b2b922459c065fad1c0631e78d08c3dbcb | |
parent | 2fed9244d4220f8ee8d45da45cd1209ffd33a060 (diff) | |
download | leaflet-soton-222d16ec10e8887acb467b9f827fd6b8f8f40b2f.tar leaflet-soton-222d16ec10e8887acb467b9f827fd6b8f8f40b2f.tar.gz |
Give image dimensions as numbers
-rwxr-xr-x | create-data.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/create-data.js b/create-data.js index efb95cf..039f58b 100755 --- a/create-data.js +++ b/create-data.js @@ -1994,9 +1994,8 @@ OPTIONAL { ?image dcterms:license ?license ; }\ var obj = {}; obj.url = image.image.value; - obj.width = image.width.value; - obj.height = image.height.value; - + obj.width = parseInt(image.width.value, 10); + obj.height = parseInt(image.height.value, 10); var imageName = obj.url.split("/").slice(-1)[0]; |