forked from MapComplete/MapComplete
merged layers Natuurpunt
This commit is contained in:
commit
b636f00006
2 changed files with 23 additions and 4 deletions
|
@ -12,7 +12,10 @@
|
|||
"nl": "Op deze kaart vind je alle natuurgebieden die Natuurpunt ter beschikking stelt",
|
||||
"en": "On this map you can find all the nature reserves that Natuurpunt offers "
|
||||
},
|
||||
"language": ["nl", "en"],
|
||||
"language": [
|
||||
"nl",
|
||||
"en"
|
||||
],
|
||||
"maintainer": "",
|
||||
"icon": "./assets/themes/natuurpunt/natuurpunt.png",
|
||||
"version": "0",
|
||||
|
@ -46,7 +49,14 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"drinking_water",
|
||||
"bench",
|
||||
"bench_at_pt",
|
||||
"picnic_table",
|
||||
"birdhide",
|
||||
"toilet",
|
||||
"visitor_information_centre"
|
||||
],
|
||||
"roamingRenderings": []
|
||||
}
|
||||
|
|
|
@ -102,7 +102,12 @@ export default class ScriptUtils {
|
|||
.filter(path => path.indexOf("license_info.json") < 0)
|
||||
.map(path => {
|
||||
try {
|
||||
const parsed = JSON.parse(readFileSync(path, "UTF8"));
|
||||
const contents = readFileSync(path, "UTF8")
|
||||
if(contents === ""){
|
||||
throw "The file "+path+" is empty, did you properly save?"
|
||||
}
|
||||
|
||||
const parsed = JSON.parse(contents);
|
||||
return {parsed: parsed, path: path}
|
||||
} catch (e) {
|
||||
console.error("Could not parse file ", "./assets/layers/" + path, "due to ", e)
|
||||
|
@ -116,7 +121,11 @@ export default class ScriptUtils {
|
|||
.filter(path => path.indexOf("license_info.json") < 0)
|
||||
.map(path => {
|
||||
try {
|
||||
const parsed = JSON.parse(readFileSync(path, "UTF8"));
|
||||
const contents = readFileSync(path, "UTF8");
|
||||
if(contents === ""){
|
||||
throw "The file "+path+" is empty, did you properly save?"
|
||||
}
|
||||
const parsed = JSON.parse(contents);
|
||||
return {parsed: parsed, path: path}
|
||||
} catch (e) {
|
||||
console.error("Could not read file ", path, "due to ", e)
|
||||
|
|
Loading…
Reference in a new issue