Fix buurtnatuur colours, add social image
This commit is contained in:
parent
6828699a4c
commit
00eed41e75
8 changed files with 33 additions and 10 deletions
|
@ -47,6 +47,10 @@ export class Bos extends LayerDefinition {
|
|||
return function (properties: any) {
|
||||
let questionSeverity = 0;
|
||||
for (const qd of self.elementsToShow) {
|
||||
if(qd instanceof DescriptionQuestion){
|
||||
continue;
|
||||
}
|
||||
|
||||
if (qd.IsQuestioning(properties)) {
|
||||
questionSeverity = Math.max(questionSeverity, qd.Priority());
|
||||
}
|
||||
|
|
|
@ -36,8 +36,11 @@ export class NatureReserves extends LayerDefinition {
|
|||
return function (properties: any) {
|
||||
let questionSeverity = 0;
|
||||
for (const qd of self.elementsToShow) {
|
||||
if(qd instanceof DescriptionQuestion){
|
||||
continue;
|
||||
}
|
||||
if (qd.IsQuestioning(properties)) {
|
||||
questionSeverity = Math.max(questionSeverity, qd.options.priority ?? 0);
|
||||
questionSeverity = Math.max(questionSeverity, qd.Priority() ?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,15 @@ export class Park extends LayerDefinition {
|
|||
{k: new Tag("access", "yes"), txt: "Publiek toegankelijk"},
|
||||
{k: new Tag("access", ""), txt: "Publiek toegankelijk"},
|
||||
{k: new Tag("access", "no"), txt: "Niet publiek toegankelijk"},
|
||||
{k: new Tag("access", "guided"), txt: "Enkel toegankelijk met een gids of op een activiteit"}
|
||||
]
|
||||
{k: new Tag("access", "private"), txt: "Niet publiek toegankelijk, want privaat"},
|
||||
{k: new Tag("access", "guided"), txt: "Enkel toegankelijk met een gids of op een activiteit"},
|
||||
],
|
||||
freeform: {
|
||||
key: "access",
|
||||
renderTemplate: "Dit park is niet toegankelijk: {access}",
|
||||
template: "De toegankelijkheid van dit park is: $$$"
|
||||
},
|
||||
priority: 20
|
||||
})
|
||||
|
||||
private operatorByDefault = new
|
||||
|
@ -32,7 +39,8 @@ export class Park extends LayerDefinition {
|
|||
},
|
||||
mappings: [{
|
||||
k: null, txt: "De gemeente beheert dit park"
|
||||
}]
|
||||
}],
|
||||
priority: 15
|
||||
});
|
||||
|
||||
|
||||
|
@ -49,7 +57,8 @@ export class Park extends LayerDefinition {
|
|||
this.minzoom = 13;
|
||||
this.style = this.generateStyleFunction();
|
||||
this.title = new NameInline("park");
|
||||
this.elementsToShow = [new NameQuestion(),
|
||||
this.elementsToShow = [
|
||||
new NameQuestion(),
|
||||
this.accessByDefault,
|
||||
this.operatorByDefault,
|
||||
new DescriptionQuestion("park"),
|
||||
|
@ -66,6 +75,9 @@ export class Park extends LayerDefinition {
|
|||
return function (properties: any) {
|
||||
let questionSeverity = 0;
|
||||
for (const qd of self.elementsToShow) {
|
||||
if (qd instanceof DescriptionQuestion) {
|
||||
continue;
|
||||
}
|
||||
if (qd.IsQuestioning(properties)) {
|
||||
questionSeverity = Math.max(questionSeverity, qd.Priority() ?? 0);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import {And, Tag} from "../../Logic/TagsFilter";
|
|||
export class AccessTag extends TagRenderingOptions {
|
||||
|
||||
private static options = {
|
||||
priority: 10,
|
||||
priority: 20,
|
||||
question: "Is dit gebied toegankelijk?",
|
||||
primer: "Dit gebied is ",
|
||||
freeform: {
|
||||
|
|
|
@ -12,7 +12,8 @@ export class DescriptionQuestion extends TagRenderingOptions{
|
|||
key:"description:0",
|
||||
renderTemplate: "{description:0}",
|
||||
template: "$$$"
|
||||
}
|
||||
},
|
||||
priority: 14
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import {Tag} from "../../Logic/TagsFilter";
|
|||
export class NameQuestion extends TagRenderingOptions{
|
||||
|
||||
static options = {
|
||||
priority: -1, // Move this last on the priority list, in order to prevent ppl to enter access restrictions and descriptions
|
||||
priority: 10, // Move this last on the priority list, in order to prevent ppl to enter access restrictions and descriptions
|
||||
question: "Wat is de <i>officiële</i> naam van dit gebied?<br><span class='question-subtext'>" +
|
||||
"Zelf een naam bedenken wordt afgeraden.<br/>" +
|
||||
"Een beschrijving van het gebied geven kan in een volgende stap.<br/>" +
|
||||
|
|
|
@ -8,7 +8,7 @@ export class OperatorTag extends TagRenderingOptions {
|
|||
|
||||
|
||||
private static options = {
|
||||
priority: 5,
|
||||
priority: 15,
|
||||
question: "Wie beheert dit gebied?",
|
||||
freeform: {
|
||||
key: "operator",
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
|
||||
crossorigin=""/>
|
||||
<link rel="stylesheet" href="./index.css"/>
|
||||
|
||||
<meta property="og:image" content="assets/BuurtnatuurFront.jpg" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Buurtnatuur.be - samen natuur in kaart brengen" />
|
||||
<meta property="og:description" content="Met deze tool kan iedereen natuur in zijn buurt in kaart brengen en meer informatie geven" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="messagesboxmobilewrapper">
|
||||
|
|
Loading…
Reference in a new issue