From 5e6f54f660f7ac74ce60e6474994400e3baa1ae7 Mon Sep 17 00:00:00 2001
From: Pieter Vander Vennet
Date: Wed, 18 Nov 2020 13:41:31 +0100
Subject: [PATCH 01/11] Bugfix: camera with direction wouldn't show up
---
Customizations/JSON/LayerConfigJson.ts | 6 ++++++
InitUiElements.ts | 4 ++--
Logic/Leaflet/GeoLocationHandler.ts | 4 ----
.../themes/surveillance_cameras/custom_theme.css | 15 ---------------
index.css | 5 +++++
5 files changed, 13 insertions(+), 21 deletions(-)
diff --git a/Customizations/JSON/LayerConfigJson.ts b/Customizations/JSON/LayerConfigJson.ts
index 98df035ff..ac1b338a8 100644
--- a/Customizations/JSON/LayerConfigJson.ts
+++ b/Customizations/JSON/LayerConfigJson.ts
@@ -121,6 +121,12 @@ export interface LayerConfigJson {
/**
* All the tag renderings.
* A tag rendering is a block that either shows the known value or asks a question.
+ *
+ * Refer to the class `TagRenderingConfigJson` to see the possibilities.
+ *
+ * Note that we can also use a string here - where the string refers to a tagrenering defined in `assets/questions/questions.json`,
+ * where a few very general questions are defined e.g. website, phone number, ...
+ *
*/
tagRenderings?: (string | TagRenderingConfigJson) []
}
\ No newline at end of file
diff --git a/InitUiElements.ts b/InitUiElements.ts
index e4ac7026a..551704c93 100644
--- a/InitUiElements.ts
+++ b/InitUiElements.ts
@@ -161,7 +161,7 @@ export class InitUiElements {
if (feature === undefined) {
State.state.fullScreenMessage.setData(undefined);
}
- if (feature?.properties === undefined) {
+ if (feature?.properties === undefined) {
return;
}
const data = feature.properties;
@@ -175,7 +175,7 @@ export class InitUiElements {
continue;
}
- if(layer.title === null && layer.tagRenderings.length === 0){
+ if((layer.title ?? null) === null && layer.tagRenderings.length === 0){
continue;
}
diff --git a/Logic/Leaflet/GeoLocationHandler.ts b/Logic/Leaflet/GeoLocationHandler.ts
index e94b23e3d..d201fdf07 100644
--- a/Logic/Leaflet/GeoLocationHandler.ts
+++ b/Logic/Leaflet/GeoLocationHandler.ts
@@ -25,14 +25,10 @@ export class GeoLocationHandler extends UIElement {
function onAccuratePositionProgress(e) {
- console.log(e.accuracy);
- console.log(e.latlng);
State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy});
}
function onAccuratePositionFound(e) {
- console.log(e.accuracy);
- console.log(e.latlng);
State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy});
}
diff --git a/assets/themes/surveillance_cameras/custom_theme.css b/assets/themes/surveillance_cameras/custom_theme.css
index 97a49d87b..02e139eee 100644
--- a/assets/themes/surveillance_cameras/custom_theme.css
+++ b/assets/themes/surveillance_cameras/custom_theme.css
@@ -9,18 +9,3 @@ html {
--foreground-color: white !important;
--shadow-color: #0f0 !important;
}
-
-#innercolor {
- stop-color:#ff0000
-}
-.leaflet-div-icon svg {
- width: calc(100% - 3px);
- height: calc(100% + 3px);
-}
-/*
-.leaflet-div-icon svg path {
- fill: none !important;
- stroke-width: 1px !important;
- stroke: #0f0 !important;
-}
-*/
diff --git a/index.css b/index.css
index ed793ac90..8afce07dc 100644
--- a/index.css
+++ b/index.css
@@ -420,6 +420,11 @@ a {
}
+.leaflet-div-icon svg {
+ width: calc(100%);
+ height: calc(100%);
+}
+
/****** ShareScreen *****/
.literal-code {
From cd548ab04b8051262b2bf85cde70deb3ac70121a Mon Sep 17 00:00:00 2001
From: Pieter Vander Vennet
Date: Fri, 20 Nov 2020 14:00:37 +0100
Subject: [PATCH 02/11] Add Fietsambassade logo to cyclofix; various svg- and
css fixes
---
Customizations/JSON/LayerConfig.ts | 2 +-
InitUiElements.ts | 1 -
Logic/FilteredLayer.ts | 4 +-
State.ts | 2 +-
Svg.ts | 9 +-
UI/Popup/EditableTagRendering.ts | 2 +-
UI/Popup/FeatureInfoBox.ts | 10 +-
.../bike_repair_station.json | 8 ++
assets/layers/bike_shop/bike_shop.json | 102 +++++++++++++-----
.../{repair_station.svg => tools.svg} | 0
.../cycling_themed_objects.json | 13 +--
assets/questions/questions.json | 39 +++++--
assets/svg/ampersand.svg | 2 +-
assets/svg/phone.svg | 59 ++++++++++
.../cyclofix/fietsambassade_gent_logo.svg | 1 +
.../fietsambassade_gent_logo_small.svg | 82 ++++++++++++++
css/tagrendering.css | 31 ++++++
index.css | 5 +-
package.json | 4 +-
test.ts | 2 +-
test/Tag.spec.ts | 13 ++-
21 files changed, 332 insertions(+), 59 deletions(-)
rename assets/layers/bike_shop/{repair_station.svg => tools.svg} (100%)
create mode 100644 assets/svg/phone.svg
create mode 100644 assets/themes/cyclofix/fietsambassade_gent_logo.svg
create mode 100644 assets/themes/cyclofix/fietsambassade_gent_logo_small.svg
diff --git a/Customizations/JSON/LayerConfig.ts b/Customizations/JSON/LayerConfig.ts
index 6e14be6a3..faa7ac5b5 100644
--- a/Customizations/JSON/LayerConfig.ts
+++ b/Customizations/JSON/LayerConfig.ts
@@ -100,7 +100,7 @@ export default class LayerConfig {
}
this.tagRenderings = trs(json.tagRenderings).concat(roamingRenderings);
- this.titleIcons = trs(json.titleIcons ?? ["wikipedialink","osmlink"]);
+ this.titleIcons = trs(json.titleIcons ?? ["phonelink","wikipedialink","osmlink"]);
function tr(key, deflt) {
diff --git a/InitUiElements.ts b/InitUiElements.ts
index 551704c93..ad0488431 100644
--- a/InitUiElements.ts
+++ b/InitUiElements.ts
@@ -230,7 +230,6 @@ export class InitUiElements {
});
const marker = L.marker([home.lat, home.lon], {icon: icon})
marker.addTo(State.state.bm.map)
- console.log(marker)
});
new GeoLocationHandler()
diff --git a/Logic/FilteredLayer.ts b/Logic/FilteredLayer.ts
index c978185cd..a9f2302c5 100644
--- a/Logic/FilteredLayer.ts
+++ b/Logic/FilteredLayer.ts
@@ -184,7 +184,9 @@ export class FilteredLayer {
if (feature.properties.id.replace(/\//g, "_") === Hash.Get().data) {
const center = GeoOperations.centerpoint(feature).geometry.coordinates;
popup.setLatLng({lat: center[1], lng: center[0]});
- popup.openOn(State.state.bm.map)
+ popup.openOn(State.state.bm.map);
+ State.state.selectedElement.setData(feature);
+ uiElement.Update();
}
}
diff --git a/State.ts b/State.ts
index ec61047be..b96bee973 100644
--- a/State.ts
+++ b/State.ts
@@ -23,7 +23,7 @@ export default class State {
// The singleton of the global state
public static state: State;
- public static vNumber = "0.2.0";
+ public static vNumber = "0.2.1c";
// The user journey states thresholds when a new feature gets unlocked
public static userJourney = {
diff --git a/Svg.ts b/Svg.ts
index fbcbcdda2..4fcddce8f 100644
--- a/Svg.ts
+++ b/Svg.ts
@@ -14,7 +14,7 @@ export default class Svg {
public static addSmall_svg() { return new FixedUiElement(Svg.addSmall);}
public static addSmall_ui() { return new FixedUiElement(Svg.addSmall_img);}
- public static ampersand = "e "
+ public static ampersand = " "
public static ampersand_img = Img.AsImageElement(Svg.ampersand)
public static ampersand_svg() { return new FixedUiElement(Svg.ampersand);}
public static ampersand_ui() { return new FixedUiElement(Svg.ampersand_img);}
@@ -174,6 +174,11 @@ export default class Svg {
public static pencil_svg() { return new FixedUiElement(Svg.pencil);}
public static pencil_ui() { return new FixedUiElement(Svg.pencil_img);}
+ public static phone = " "
+ public static phone_img = Img.AsImageElement(Svg.phone)
+ public static phone_svg() { return new FixedUiElement(Svg.phone);}
+ public static phone_ui() { return new FixedUiElement(Svg.phone_img);}
+
public static pop_out = " "
public static pop_out_img = Img.AsImageElement(Svg.pop_out)
public static pop_out_svg() { return new FixedUiElement(Svg.pop_out);}
@@ -219,4 +224,4 @@ export default class Svg {
public static wikipedia_svg() { return new FixedUiElement(Svg.wikipedia);}
public static wikipedia_ui() { return new FixedUiElement(Svg.wikipedia_img);}
-public static All = {"add.svg": Svg.add,"addSmall.svg": Svg.addSmall,"ampersand.svg": Svg.ampersand,"arrow-left-smooth.svg": Svg.arrow_left_smooth,"arrow-right-smooth.svg": Svg.arrow_right_smooth,"bug.svg": Svg.bug,"camera-plus.svg": Svg.camera_plus,"checkmark.svg": Svg.checkmark,"close.svg": Svg.close,"compass.svg": Svg.compass,"crosshair-blue-center.svg": Svg.crosshair_blue_center,"crosshair-blue.svg": Svg.crosshair_blue,"crosshair.svg": Svg.crosshair,"delete_icon.svg": Svg.delete_icon,"direction.svg": Svg.direction,"direction_gradient.svg": Svg.direction_gradient,"down.svg": Svg.down,"envelope.svg": Svg.envelope,"floppy.svg": Svg.floppy,"gear.svg": Svg.gear,"help.svg": Svg.help,"home.svg": Svg.home,"home_white_bg.svg": Svg.home_white_bg,"josm_logo.svg": Svg.josm_logo,"layers.svg": Svg.layers,"layersAdd.svg": Svg.layersAdd,"logo.svg": Svg.logo,"logout.svg": Svg.logout,"mapillary.svg": Svg.mapillary,"no_checkmark.svg": Svg.no_checkmark,"or.svg": Svg.or,"osm-logo-us.svg": Svg.osm_logo_us,"osm-logo.svg": Svg.osm_logo,"pencil.svg": Svg.pencil,"pop-out.svg": Svg.pop_out,"reload.svg": Svg.reload,"search.svg": Svg.search,"share.svg": Svg.share,"star.svg": Svg.star,"statistics.svg": Svg.statistics,"up.svg": Svg.up,"wikimedia-commons-white.svg": Svg.wikimedia_commons_white,"wikipedia.svg": Svg.wikipedia};}
+public static All = {"add.svg": Svg.add,"addSmall.svg": Svg.addSmall,"ampersand.svg": Svg.ampersand,"arrow-left-smooth.svg": Svg.arrow_left_smooth,"arrow-right-smooth.svg": Svg.arrow_right_smooth,"bug.svg": Svg.bug,"camera-plus.svg": Svg.camera_plus,"checkmark.svg": Svg.checkmark,"close.svg": Svg.close,"compass.svg": Svg.compass,"crosshair-blue-center.svg": Svg.crosshair_blue_center,"crosshair-blue.svg": Svg.crosshair_blue,"crosshair.svg": Svg.crosshair,"delete_icon.svg": Svg.delete_icon,"direction.svg": Svg.direction,"direction_gradient.svg": Svg.direction_gradient,"down.svg": Svg.down,"envelope.svg": Svg.envelope,"floppy.svg": Svg.floppy,"gear.svg": Svg.gear,"help.svg": Svg.help,"home.svg": Svg.home,"home_white_bg.svg": Svg.home_white_bg,"josm_logo.svg": Svg.josm_logo,"layers.svg": Svg.layers,"layersAdd.svg": Svg.layersAdd,"logo.svg": Svg.logo,"logout.svg": Svg.logout,"mapillary.svg": Svg.mapillary,"no_checkmark.svg": Svg.no_checkmark,"or.svg": Svg.or,"osm-logo-us.svg": Svg.osm_logo_us,"osm-logo.svg": Svg.osm_logo,"pencil.svg": Svg.pencil,"phone.svg": Svg.phone,"pop-out.svg": Svg.pop_out,"reload.svg": Svg.reload,"search.svg": Svg.search,"share.svg": Svg.share,"star.svg": Svg.star,"statistics.svg": Svg.statistics,"up.svg": Svg.up,"wikimedia-commons-white.svg": Svg.wikimedia_commons_white,"wikipedia.svg": Svg.wikipedia};}
diff --git a/UI/Popup/EditableTagRendering.ts b/UI/Popup/EditableTagRendering.ts
index ea61c8926..0481eef24 100644
--- a/UI/Popup/EditableTagRendering.ts
+++ b/UI/Popup/EditableTagRendering.ts
@@ -33,7 +33,7 @@ export default class EditableTagRendering extends UIElement {
this.dumbMode = false;
if (this._configuration.question !== undefined) {
- if (State.state.featureSwitchUserbadge.data) {
+ if (State.state?.featureSwitchUserbadge?.data) {
// 2.3em total width
const self = this;
this._editButton =
diff --git a/UI/Popup/FeatureInfoBox.ts b/UI/Popup/FeatureInfoBox.ts
index 9a669dcf9..7c1ac0b49 100644
--- a/UI/Popup/FeatureInfoBox.ts
+++ b/UI/Popup/FeatureInfoBox.ts
@@ -44,9 +44,13 @@ export class FeatureInfoBox extends UIElement {
return new Combine([
new Combine([this._title, this._titleIcons])
.SetClass("featureinfobox-titlebar"),
- ...this._renderings,
- this._questionBox,
- ]).Render();
+ new Combine([
+ ...this._renderings,
+ this._questionBox
+ ]
+ ).SetClass("featureinfobox-content"),
+ ]).SetClass("featureinfobox")
+ .Render();
}
}
diff --git a/assets/layers/bike_repair_station/bike_repair_station.json b/assets/layers/bike_repair_station/bike_repair_station.json
index 4089160f4..daa1e3dc8 100644
--- a/assets/layers/bike_repair_station/bike_repair_station.json
+++ b/assets/layers/bike_repair_station/bike_repair_station.json
@@ -89,6 +89,14 @@
}
]
},
+ "titleIcons": [
+ {
+ "render": "",
+ "condition": "operator=De Fietsambassade Gent"
+ },
+ "wikipedialink",
+ "osmlink"
+ ],
"tagRenderings": [
"images",
{
diff --git a/assets/layers/bike_shop/bike_shop.json b/assets/layers/bike_shop/bike_shop.json
index 613e5a693..1a931461c 100644
--- a/assets/layers/bike_shop/bike_shop.json
+++ b/assets/layers/bike_shop/bike_shop.json
@@ -12,6 +12,13 @@
"#": "We select all bicycle shops, sport shops (but we try to weed out non-bicycle related shops), and any shop with a bicycle related tag",
"or": [
"shop=bicycle",
+ {
+ "#": "A bicycle rental with a network is something such as villo, bluebike, ... We don't want them",
+ "and": [
+ "amenity=bicycle_rental",
+ "network="
+ ]
+ },
{
"#": "if sport is defined and is not bicycle, it is retrackted; if bicycle retail/repair is marked as 'no', it is retracted too.",
"##": "There will be a few false-positives with this. They will get filtered out by people marking both 'not selling bikes' and 'not repairing bikes'. Furthermore, the OSMers will add a sports-subcategory on it",
@@ -68,7 +75,12 @@
}
},
{
- "if": "shop!~bicycle",
+ "if": {
+ "and": [
+ "shop!~bicycle",
+ "shop~*"
+ ]
+ },
"then": "Other shop"
},
{
@@ -127,6 +139,23 @@
"de": "Fahrradgeschäft"
}
},
+ {
+ "if": {
+ "and": [
+ "name~*",
+ {
+ "or": [
+ "service:bicycle:rental=yes",
+ "amenity=bicycle_rental"
+ ]
+ }
+ ]
+ },
+ "then": {
+ "nl": "Fietsverhuur {name}",
+ "en": "Bicycle rental {name}"
+ }
+ },
{
"if": "name~*",
"then": {
@@ -141,37 +170,34 @@
},
"titleIcons": [
{
- "mappings": [
- {
- "if": "service:bicycle:pump=yes",
- "then": ""
- }
- ]
+ "render": "",
+ "condition": "operator=De Fietsambassade Gent"
},
{
- "mappings": [
- {
- "if": "service:bicycle:diy=yes",
- "then": ""
- }
- ]
+ "condition": {
+ "or": [
+ "service:bicycle:pump=yes",
+ "service:bicycle:pump=seperate"
+ ]
+ },
+ "render": ""
},
{
- "mappings": [
- {
- "if": {
- "or": [
- "service:bicycle:cleaning=yes",
- "service:bicycle:cleaning=diy"
- ]
- },
- "then": ""
- }
- ]
+ "condition": "service:bicycle:diy=yes",
+ "render": ""
},
+ {
+ "condition": {
+ "or": [
+ "service:bicycle:cleaning=yes",
+ "service:bicycle:cleaning=diy"
+ ]
+ },
+ "render": ""
+ },
+ "phonelink",
"wikipedialink",
"osmlink"
-
],
"description": {
"en": "A shop specifically selling bicycles or related items",
@@ -182,6 +208,7 @@
{
"condition": {
"and": [
+ "shop~*",
"shop!~bicycle",
"shop!~sports"
]
@@ -257,6 +284,13 @@
"type": "opening_hours"
}
},
+ "description",
+ {
+ "render": "Enkel voor {access}",
+ "freeform": {
+ "key": "access"
+ }
+ },
{
"question": {
"en": "Does this shop sell bikes?",
@@ -439,6 +473,13 @@
"gl": "Esta tenda non ofrece unha bomba de ar para uso de calquera persoa",
"de": "Dieses Geschäft bietet für niemanden eine Fahrradpumpe an"
}
+ },
+ {
+ "if": "service:bicycle:pump=seperate",
+ "then": {
+ "en": "There is bicycle pump, it is shown as a seperate point ",
+ "nl": "Er is een fietspomp, deze is apart aangeduid"
+ }
}
]
},
@@ -470,6 +511,13 @@
"gl": "Non hai ferramentas aquí para arranxar a túa propia bicicleta",
"de": "Dieses Geschäft bietet keine Werkzeuge für Heimwerkerreparaturen an"
}
+ },
+ {
+ "if": "service:bicycle:diy=only_sold",
+ "then": {
+ "en": "Tools for DIY repair are only available if you bought/hire the bike in the shop",
+ "nl": "Het gereedschap aan om je fiets zelf te herstellen is enkel voor als je de fiets er kocht of huurt"
+ }
}
]
},
@@ -521,6 +569,10 @@
"icon": {
"render": "./assets/layers/bike_shop/repair_shop.svg",
"mappings": [
+ {
+ "if": "operator=De Fietsambassade Gent",
+ "then": "./assets/themes/cyclofix/fietsambassade_gent_logo_small.svg"
+ },
{
"if": "service:bicycle:retail=yes",
"then": "./assets/layers/bike_shop/shop.svg"
diff --git a/assets/layers/bike_shop/repair_station.svg b/assets/layers/bike_shop/tools.svg
similarity index 100%
rename from assets/layers/bike_shop/repair_station.svg
rename to assets/layers/bike_shop/tools.svg
diff --git a/assets/layers/cycling_themed_object/cycling_themed_objects.json b/assets/layers/cycling_themed_object/cycling_themed_objects.json
index 2f4be6eab..7e57106d7 100644
--- a/assets/layers/cycling_themed_object/cycling_themed_objects.json
+++ b/assets/layers/cycling_themed_object/cycling_themed_objects.json
@@ -7,7 +7,7 @@
"de": "Mit Fahrrad zusammenhängendes Objekt"
},
"minzoom": 13,
- "overpassTags": "theme~cycling|bicycle",
+ "overpassTags": {"or": ["theme~cycling|bicycle", "sport=cycling"]},
"title": {
"render": {
"en": "Bike related object",
@@ -18,12 +18,13 @@
"mappings": [
{
"if": "name~*",
+ "then":"{name}"
+ },
+ {
+ "if": "leisure=track",
"then": {
- "en": "{name}",
- "nl": "{name}",
- "fr": "{name}",
- "gl": "{name}",
- "de": "{name}"
+ "nl": "Wielerpiste",
+ "en": "Cycle track"
}
}
]
diff --git a/assets/questions/questions.json b/assets/questions/questions.json
index 2595eab2c..6d34f7e8d 100644
--- a/assets/questions/questions.json
+++ b/assets/questions/questions.json
@@ -5,17 +5,40 @@
"osmlink": {
"render": "",
- "mappings":[{
- "if": "id~=-",
- "then": "Uploading..."
- }]
+ "mappings": [
+ {
+ "if": "id~=-",
+ "then": "Uploading..."
+ }
+ ]
},
-
"wikipedialink": {
- "render": "",
- "condition": "wikipedia~*"
+ "render": "",
+ "condition": "wikipedia~*"
+ },
+ "phonelink": {
+ "render": "",
+ "condition": "phone~*"
+ },
+ "description": {
+ "question": {
+ "nl": "Zijn er extra zaken die je niet in de bovenstaande vragen kwijt kon? Zet deze in de descriptionHerhaal geen antwoorden die je reeds gaf",
+ "en": "Is there still something relevant you couldn't give in the previous questions? Add it here. Don't repeat already stated facts"
+ },
+ "render": "{description}",
+ "freeform": {
+ "key": "description"
+ },
+ "mappings": [
+ {
+ "if": "description=",
+ "then": {
+ "nl": "Geen extra beschrijving",
+ "en": "No extra description"
+ }
+ }
+ ]
},
-
"website": {
"question": {
"en": "What is the website of {name}?",
diff --git a/assets/svg/ampersand.svg b/assets/svg/ampersand.svg
index f2df861c4..525a1ef74 100644
--- a/assets/svg/ampersand.svg
+++ b/assets/svg/ampersand.svg
@@ -1,4 +1,4 @@
-e
+
\ No newline at end of file
+ d="m 68.240384,43.32148 v 15.764528 c -3.446517,5.459344 -5.76619,4.074036 -10.247903,5.133803 1.652985,11.916006 8.426597,10.425906 10.341535,21.124208 v 0.06209 c 2.338689,-0.4811 6.021132,0.919057 6.10748,-2.71532 L 74.347864,43.32148 Z"
+ id="path14" />
diff --git a/assets/tagRenderings/icons.json b/assets/tagRenderings/icons.json
index 7a73a41bf..de7de5bf5 100644
--- a/assets/tagRenderings/icons.json
+++ b/assets/tagRenderings/icons.json
@@ -1,2 +1,19 @@
{
+ "osmlink": {
+ "render": "",
+ "mappings": [
+ {
+ "if": "id~=-",
+ "then": "Uploading..."
+ }
+ ]
+ },
+ "wikipedialink": {
+ "render": "",
+ "condition": "wikipedia~*"
+ },
+
+ "sharelink": {
+ "render": "{share_link()}"
+ }
}
\ No newline at end of file
diff --git a/assets/tagRenderings/questions.json b/assets/tagRenderings/questions.json
index 32662cdd3..3ffefa6ac 100644
--- a/assets/tagRenderings/questions.json
+++ b/assets/tagRenderings/questions.json
@@ -2,20 +2,6 @@
"images": {
"render": "{image_carousel()}{image_upload()}"
},
-
- "osmlink": {
- "render": "",
- "mappings":[{
- "if": "id~=-",
- "then": "Uploading..."
- }]
- },
-
- "wikipedialink": {
- "render": "",
- "condition": "wikipedia~*"
- },
-
"phone": {
"question": {
"en": "What is the phone number of {name}?",
@@ -27,7 +13,6 @@
"type": "phone"
}
},
-
"email": {
"render": "{email}",
"freeform": {
@@ -35,7 +20,6 @@
"type": "email"
}
},
-
"website": {
"question": {
"en": "What is the website of {name}?",
@@ -49,7 +33,6 @@
"type": "url"
}
},
-
"opening_hours": {
"question": {
"en": "What are the opening hours of {name}?",
diff --git a/assets/themes/cyclestreets/cyclestreets.json b/assets/themes/cyclestreets/cyclestreets.json
index 6c61bb6b6..0026d0183 100644
--- a/assets/themes/cyclestreets/cyclestreets.json
+++ b/assets/themes/cyclestreets/cyclestreets.json
@@ -166,7 +166,7 @@
}
]
},
- "icon": "./assets/pencil.svg",
+ "icon": "./assets/svg/pencil.svg",
"width": "5",
"color": {
"render": "#aaaaaa",
diff --git a/assets/themes/toilets/toilets.json b/assets/themes/toilets/toilets.json
index 31dcdc104..f5c38a405 100644
--- a/assets/themes/toilets/toilets.json
+++ b/assets/themes/toilets/toilets.json
@@ -23,306 +23,6 @@
"widenFactor": 0.05,
"icon": "./assets/themes/toilets/toilets.svg",
"layers": [
- {
- "id": "Toilet",
- "name": {
- "en": "Toilets",
- "de": "Toiletten",
- "fr": "Toilettes"
- },
- "overpassTags": "amenity=toilets",
- "title": {
- "render": {
- "en": "Toilet",
- "de": "Toilette",
- "fr": "Toilettes"
- }
- },
- "icon": {
- "render": "./assets/themes/toilets/toilets.svg",
- "mappings": [
- {
- "if": "wheelchair=yes",
- "then": "./assets/themes/toilets/wheelchair.svg"
- }
- ]
- },
- "color": {
- "render": "#0000ff"
- },
- "minzoom": 12,
- "wayHandling": 2,
- "presets": [
- {
- "title": {
- "en": "Toilet",
- "de": "Toilette",
- "fr": "Toilettes"
- },
- "tags": [
- "amenity=toilets"
- ],
- "description": {
- "en": "A publicly accessible toilet or restroom",
- "de": "Eine öffentlich zugängliche Toilette",
- "fr": "Des toilettes"
- }
- },
- {
- "title": {
- "en": "Toilets with wheelchair accessible toilet",
- "de": "Toiletten mit rollstuhlgerechter Toilette",
- "fr": "Toilettes accessible aux personnes à mobilité réduite"
- },
- "tags": [
- "amenity=toilets",
- "wheelchair=yes"
- ],
- "description": {
- "en": "A restroom which has at least one wheelchair-accessible toilet",
- "de": "Eine Toilettenanlage mit mindestens einer rollstuhlgerechten Toilette",
- "fr": "Toilettes avec au moins un WC accessible aux personnes à mobilité réduite"
- }
- }
- ],
- "tagRenderings": [
- "images",
- {
- "question": {
- "en": "Are these toilets publicly accessible?",
- "de": "Sind diese Toiletten öffentlich zugänglich?",
- "fr": "Ces toilettes sont-elles accessibles publiquement ?"
- },
- "render": {
- "en": "Access is {access}",
- "de": "Zugang ist {access}",
- "fr": "L'accès est {access}"
- },
- "freeform": {
- "key": "access",
- "addExtraTags": [
- "fixme=the tag access was filled out by the user and might need refinement"
- ]
- },
- "mappings": [
- {
- "if": "access=yes",
- "then": {
- "en": "Public access",
- "de": "Öffentlicher Zugang",
- "fr": "Accès publique"
- }
- },
- {
- "if": "access=customers",
- "then": {
- "en": "Only access to customers",
- "de": "Nur Zugang für Kunden",
- "fr": "Accès réservé aux clients"
- }
- },
- {
- "if": "access=no",
- "then": {
- "en": "Not accessible",
- "de": "Nicht zugänglich",
- "fr": "WC privés"
- }
- },
- {
- "if": "access=key",
- "then": {
- "en": "Accessible, but one has to ask a key to enter",
- "de": "Zugänglich, aber man muss einen Schlüssel für die Eingabe verlangen",
- "fr": "Accessible, mais vous devez demander la clé"
- }
- }
- ]
- },
- {
- "question": {
- "en": "Are these toilets free to use?",
- "de": "Können diese Toiletten kostenlos benutzt werden?",
- "fr": "Ces toilettes sont-elles payantes"
- },
- "mappings": [
- {
- "then": {
- "en": "These are paid toilets",
- "de": "Dies sind bezahlte Toiletten",
- "fr": "Toilettes payantes"
- },
- "if": "fee=yes"
- },
- {
- "if": "fee=no",
- "then": {
- "en": "Free to use",
- "de": "Kostenlose Nutzung",
- "fr": "Toilettes gratuites"
- }
- }
- ]
- },
- {
- "question": {
- "en": "How much does one have to pay for these toilets?",
- "de": "Wie viel muss man für diese Toiletten bezahlen?",
- "fr": "Quel est le prix d'accès de ces toilettes ?"
- },
- "render": {
- "en": "The fee is {charge}",
- "de": "Die Gebühr beträgt {charge}",
- "fr": "Le prix est {charge}"
- },
- "condition": "fee=yes",
- "freeform": {
- "key": "charge",
- "type": "string"
- }
- },
- {
- "question": {
- "en": "Is there a dedicated toilet for wheelchair users",
- "de": "Gibt es eine Toilette für Rollstuhlfahrer?",
- "fr": "Un WC réservé aux personnes à mobilité réduite est-il présent ?"
- },
- "mappings": [
- {
- "then": {
- "en": "There is a dedicated toilet for wheelchair users",
- "de": "Es gibt eine Toilette für Rollstuhlfahrer",
- "fr": "Il y a un WC réservé pour les personnes à mobilité réduite"
- },
- "if": "wheelchair=yes"
- },
- {
- "if": "wheelchair=no",
- "then": {
- "en": "No wheelchair access",
- "de": "Kein Zugang für Rollstuhlfahrer",
- "fr": "Non accessible aux personnes à mobilité réduite"
- }
- }
- ]
- },
- {
- "question": {
- "en": "Which kind of toilets are this?",
- "de": "Welche Art von Toiletten sind das?",
- "fr": "De quel type sont ces toilettes ?"
- },
- "mappings": [
- {
- "if": "toilets:position=seated",
- "then": {
- "en": "There are only seated toilets",
- "de": "Es gibt nur Sitztoiletten",
- "fr": "Il y a uniquement des WC assis"
- }
- },
- {
- "if": "toilets:position=urinals",
- "then": {
- "en": "There are only urinals here",
- "de": "Hier gibt es nur Pissoirs",
- "fr": "Il y a uniquement des urinoirs"
- }
- },
- {
- "if": "toilets:position=squat",
- "then": {
- "en": "There are only squat toilets here",
- "de": "Es gibt hier nur Hocktoiletten.",
- "fr": "Il y a uniquement des WC turques"
- }
- },
- {
- "if": "toilets:position=seated;urinals",
- "then": {
- "en": "Both seated toilets and urinals are available here",
- "de": "Sowohl Sitztoiletten als auch Pissoirs sind hier verfügbar",
- "fr": "Il y a des WC assis et des urinoirs"
- }
- }
- ]
- },
- {
- "question": {
- "en": "Is a changing table (to change diapers) available?",
- "de": "Ist ein Wickeltisch (zum Wechseln der Windeln) vorhanden?",
- "fr": "Ces WC disposent-ils d'une table à langer ?"
- },
- "mappings": [
- {
- "then": {
- "en": "A changing table is available",
- "de": "Ein Wickeltisch ist verfügbar",
- "fr": "Une table à langer est disponible"
- },
- "if": "changing_table=yes"
- },
- {
- "if": "changing_table=no",
- "then": {
- "en": "No changing table is available",
- "de": "Es ist kein Wickeltisch verfügbar",
- "fr": "Aucune table à langer"
- }
- }
- ]
- },
- {
- "question": {
- "en": "Where is the changing table located?",
- "de": "Wo befindet sich der Wickeltisch?",
- "fr": "Où se situe la table à langer ?"
- },
- "render": {
- "en": "The changing table is located at {changing_table:location}",
- "de": "Die Wickeltabelle befindet sich in {changing_table:location}",
- "fr": "Emplacement de la table à langer : {changing_table:location}"
- },
- "condition": "changing_table=yes",
- "freeform": {
- "key": "changing_table:location"
- },
- "mappings": [
- {
- "then": {
- "en": "The changing table is in the toilet for women. ",
- "de": "Der Wickeltisch befindet sich in der Damentoilette. ",
- "fr": "La table à langer se situe dans les WC pour femmes. "
- },
- "if": "changing_table:location=female_toilet"
- },
- {
- "then": {
- "en": "The changing table is in the toilet for men. ",
- "de": "Der Wickeltisch befindet sich in der Herrentoilette. ",
- "fr": "La table à langer se situe dans les WC pour hommes. "
- },
- "if": "changing_table:location=male_toilet"
- },
- {
- "if": "changing_table:location=wheelchair_toilet",
- "then": {
- "en": "The changing table is in the toilet for wheelchair users. ",
- "de": "Der Wickeltisch befindet sich in der Toilette für Rollstuhlfahrer. ",
- "fr": "La table à langer se situe dans les WC pour personnes à mobilité réduite. "
- }
- },
- {
- "if": "changing_table:location=dedicated_room",
- "then": {
- "en": "The changing table is in a dedicated room. ",
- "de": "Der Wickeltisch befindet sich in einem eigenen Raum. ",
- "fr": "La table à langer se situe dans un espace dédié. "
- }
- }
- ]
- }
- ]
- }
+ "toilets"
]
}
\ No newline at end of file
From e10f9b61e2f1738d079995096d14f80210d15533 Mon Sep 17 00:00:00 2001
From: Pieter Vander Vennet
Date: Sun, 22 Nov 2020 03:16:56 +0100
Subject: [PATCH 07/11] Experimenting with a share button...
---
UI/ShareButton.ts | 38 +++++++++++++++++++++++++++++++++++++
UI/SpecialVisualizations.ts | 4 ++--
2 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 UI/ShareButton.ts
diff --git a/UI/ShareButton.ts b/UI/ShareButton.ts
new file mode 100644
index 000000000..42bb0aba1
--- /dev/null
+++ b/UI/ShareButton.ts
@@ -0,0 +1,38 @@
+import {UIElement} from "./UIElement";
+
+export default class ShareButton extends UIElement{
+ private _embedded: UIElement;
+ private _shareData: { text: string; title: string; url: string };
+
+ constructor(embedded: UIElement, shareData: {
+ text: string,
+ title: string,
+ url: string
+ }) {
+ super();
+ this._embedded = embedded;
+ this._shareData = shareData;
+ }
+
+ InnerRender(): string {
+ return ``
+ }
+
+ protected InnerUpdate(htmlElement: HTMLElement) {
+ super.InnerUpdate(htmlElement);
+ const self= this;
+ htmlElement.addEventListener('click', () => {
+ if (navigator.share) {
+ navigator.share(self._shareData).then(() => {
+ console.log('Thanks for sharing!');
+ })
+ .catch(err => {
+ console.log(`Couldn't share because of`, err.message);
+ });
+ } else {
+ console.log('web share not supported');
+ }
+ });
+ }
+
+}
\ No newline at end of file
diff --git a/UI/SpecialVisualizations.ts b/UI/SpecialVisualizations.ts
index b88cff231..2f6547007 100644
--- a/UI/SpecialVisualizations.ts
+++ b/UI/SpecialVisualizations.ts
@@ -196,8 +196,8 @@ export default class SpecialVisualizations {
}
],
constr: (tagSource: UIEventSource, args) => {
- if (navigator.share !== undefined) {
- return new FixedUiElement("").onClick(() => {
+ if (navigator.share) {
+ return new FixedUiElement("Share").onClick(() => {
let name = tagSource["name"]
let title= State.state.layoutToUse.data.title.txt
From 2d25393962f69a9b98486d6f91f6647cc0cec93a Mon Sep 17 00:00:00 2001
From: Pieter Vander Vennet
Date: Sun, 22 Nov 2020 03:50:09 +0100
Subject: [PATCH 08/11] Experimenting with the ShareButton
---
AllTranslationAssets.ts | 2 +-
State.ts | 2 +-
UI/ShareButton.ts | 2 +-
UI/SpecialVisualizations.ts | 34 ++++++++++++++---------------
assets/tagRenderings/questions.json | 10 +++++++++
assets/translations.json | 4 ++--
index.css | 30 +++++++++++++++++++++++++
7 files changed, 61 insertions(+), 23 deletions(-)
diff --git a/AllTranslationAssets.ts b/AllTranslationAssets.ts
index 2e15891c9..3ef54ca45 100644
--- a/AllTranslationAssets.ts
+++ b/AllTranslationAssets.ts
@@ -90,7 +90,7 @@ export default class AllTranslationAssets {
getStartedNewAccount: new Translation( {"en":" or create a new account","nl":" of maak een nieuwe account aan ","fr":" ou registrez vous","es":" o crea una nueva cuenta","ca":" o crea un nou compte","gl":" ou crea unha nova conta","de":" oder ein neues Konto anlegen"} ),
noTagsSelected: new Translation( {"en":"No tags selected","es":"No se han seleccionado etiquetas","ca":"No s'han seleccionat etiquetes","gl":"Non se seleccionaron etiquetas","de":"Keine Tags ausgewählt"} ),
customThemeIntro: new Translation( {"en":"
Custom themes
These are previously visited user-generated themes.","nl":"
Onofficiële themea's
Je bezocht deze thema's gemaakt door andere OpenStreetMappers eerder","gl":"
Temas personalizados
Estes son temas xerados por usuarios previamente visitados.","de":"
Kundenspezifische Themen
Dies sind zuvor besuchte benutzergenerierte Themen"} ),
- aboutMapcomplete: new Translation( {"en":"
About MapComplete
MapComplete is an OpenStreetMap editor that is meant to help everyone to easily add information on a single theme.
Only features relevant to a single theme are shown with a few predefined questions, in order to keep things simple and extremly user-friendly.The theme maintainer can also choose a language for the interface, choose to disable elements or even to embed it into a different website without any UI-element at all.
However, another important part of MapComplete is to always offer the next step to learn more about OpenStreetMap:
An iframe without UI-elements will link to a full-screen version
The fullscreen version offers information about OpenStreetMap
If you're not logged in, you're asked to log in
If you answered a single question, you are allowed to add points
At a certain point, the actual added tags appear which later get linked to the wiki...
Do you notice an issue with MapComplete? Do you have a feature request? Do you want to help translating? Head over to the source code or issue tracker.
","nl":"
Over MapComplete
MapComplete is een OpenStreetMap-editor om eenvoudig informatie toe te voegen over één enkel onderwerp.
Om de editor zo simpel en gebruiksvriendelijk mogelijk te houden, worden enkel objecten relevant voor het thema getoond.Voor deze objecten kunnen dan vragen beantwoord worden, of men kan een nieuw punt van dit thema toevoegen.De maker van het thema kan er ook voor opteren om een aantal elementen van de gebruikersinterface uit te schakelen of de taal ervan in te stellen.
Een ander belangrijk aspect is om bezoekers stap voor stap meer te leren over OpenStreetMap:
Een iframe zonder verdere uitleg linkt naar de volledige versie van MapComplete
De volledige versie heeft uitleg over OpenStreetMap
Als je niet aangemeld bent, wordt er je gevraagd dit te doen
Als je minstens één vraag hebt beantwoord, kan je punten gaan toevoegen.
Heb je genoeg changesets, dan verschijnen de tags die wat later doorlinken naar de wiki
Merk je een bug of wil je een extra feature? Wil je helpen vertalen? Bezoek dan de broncode en issue tracker
","de":"
Über MapComplete
MapComplete ist ein OpenStreetMap-Editor, der jedem helfen soll, auf einfache Weise Informationen zu einem Einzelthema hinzuzufügen.
Nur Merkmale, die für ein einzelnes Thema relevant sind, werden mit einigen vordefinierten Fragen gezeigt, um die Dinge einfach und extrem benutzerfreundlich zu halten.Der Themen-Betreuer kann auch eine Sprache für die Schnittstelle wählen, Elemente deaktivieren oder sogar in eine andere Website ohne jegliches UI-Element einbetten.
Ein weiterer wichtiger Teil von MapComplete ist jedoch, immer den nächsten Schritt anzubietenum mehr über OpenStreetMap zu erfahren:
Ein iframe ohne UI-Elemente verlinkt zu einer Vollbildversion
Die Vollbildversion bietet Informationen über OpenStreetMap
Wenn Sie nicht eingeloggt sind, werden Sie gebeten, sich einzuloggen
Wenn Sie eine einzige Frage beantwortet haben, dürfen Sie Punkte hinzufügen
An einem bestimmten Punkt erscheinen die tatsächlich hinzugefügten Tags, die später mit dem Wiki verlinkt werden...
Fällt Ihnen ein Problem mit MapComplete auf? Haben Sie einen Feature-Wunsch? Wollen Sie beim Übersetzen helfen? Gehen Sie zum Quellcode oder zur Problemverfolgung.
"} ),
+ aboutMapcomplete: new Translation( {"en":"
About MapComplete
MapComplete is an OpenStreetMap editor that is meant to help everyone to easily add information on a single theme.
Only features relevant to a single theme are shown with a few predefined questions, in order to keep things simple and extremly user-friendly.The theme maintainer can also choose a language for the interface, choose to disable elements or even to embed it into a different website without any UI-element at all.
However, another important part of MapComplete is to always offer the next step to learn more about OpenStreetMap:
An iframe without UI-elements will link to a full-screen version
The fullscreen version offers information about OpenStreetMap
If you're not logged in, you're asked to log in
If you answered a single question, you are allowed to add points
At a certain point, the actual added tags appear which later get linked to the wiki...
Do you notice an issue with MapComplete? Do you have a feature request? Do you want to help translating? Head over to the source code or issue tracker. Follow the edit count on OsmCha
","nl":"
Over MapComplete
MapComplete is een OpenStreetMap-editor om eenvoudig informatie toe te voegen over één enkel onderwerp.
Om de editor zo simpel en gebruiksvriendelijk mogelijk te houden, worden enkel objecten relevant voor het thema getoond.Voor deze objecten kunnen dan vragen beantwoord worden, of men kan een nieuw punt van dit thema toevoegen.De maker van het thema kan er ook voor opteren om een aantal elementen van de gebruikersinterface uit te schakelen of de taal ervan in te stellen.
Een ander belangrijk aspect is om bezoekers stap voor stap meer te leren over OpenStreetMap:
Een iframe zonder verdere uitleg linkt naar de volledige versie van MapComplete
De volledige versie heeft uitleg over OpenStreetMap
Als je niet aangemeld bent, wordt er je gevraagd dit te doen
Als je minstens één vraag hebt beantwoord, kan je punten gaan toevoegen.
Heb je genoeg changesets, dan verschijnen de tags die wat later doorlinken naar de wiki
Merk je een bug of wil je een extra feature? Wil je helpen vertalen? Bezoek dan de broncode en issue tracker. Volg de edits op OsmCha
","de":"
Über MapComplete
MapComplete ist ein OpenStreetMap-Editor, der jedem helfen soll, auf einfache Weise Informationen zu einem Einzelthema hinzuzufügen.
Nur Merkmale, die für ein einzelnes Thema relevant sind, werden mit einigen vordefinierten Fragen gezeigt, um die Dinge einfach und extrem benutzerfreundlich zu halten.Der Themen-Betreuer kann auch eine Sprache für die Schnittstelle wählen, Elemente deaktivieren oder sogar in eine andere Website ohne jegliches UI-Element einbetten.
Ein weiterer wichtiger Teil von MapComplete ist jedoch, immer den nächsten Schritt anzubietenum mehr über OpenStreetMap zu erfahren:
Ein iframe ohne UI-Elemente verlinkt zu einer Vollbildversion
Die Vollbildversion bietet Informationen über OpenStreetMap
Wenn Sie nicht eingeloggt sind, werden Sie gebeten, sich einzuloggen
Wenn Sie eine einzige Frage beantwortet haben, dürfen Sie Punkte hinzufügen
An einem bestimmten Punkt erscheinen die tatsächlich hinzugefügten Tags, die später mit dem Wiki verlinkt werden...
Fällt Ihnen ein Problem mit MapComplete auf? Haben Sie einen Feature-Wunsch? Wollen Sie beim Übersetzen helfen? Gehen Sie zum Quellcode oder zur Problemverfolgung.
"} ),
backgroundMap: new Translation( {"en":"Background map","ca":"Mapa de fons","es":"Mapa de fondo","nl":"Achtergrondkaart","de":"Hintergrundkarte"} ),
zoomInToSeeThisLayer: new Translation( {"en":"Zoom in to see this layer","ca":"Amplia per veure aquesta capa","es":"Amplía para ver esta capa","nl":"Vergroot de kaart om deze laag te zien","de":"Vergrößern, um diese Ebene zu sehen"} ),
weekdays: { abbreviations: { monday: new Translation( {"en":"Mon","ca":"Dil","es":"Lun","nl":"Maan","fr":"Lun"} ),
diff --git a/State.ts b/State.ts
index d60d4c1e7..5eb6fd3ce 100644
--- a/State.ts
+++ b/State.ts
@@ -23,7 +23,7 @@ export default class State {
// The singleton of the global state
public static state: State;
- public static vNumber = "0.2.1d";
+ public static vNumber = "0.2.1e";
// The user journey states thresholds when a new feature gets unlocked
public static userJourney = {
diff --git a/UI/ShareButton.ts b/UI/ShareButton.ts
index 42bb0aba1..9fadc9451 100644
--- a/UI/ShareButton.ts
+++ b/UI/ShareButton.ts
@@ -15,7 +15,7 @@ export default class ShareButton extends UIElement{
}
InnerRender(): string {
- return ``
+ return ``
}
protected InnerUpdate(htmlElement: HTMLElement) {
diff --git a/UI/SpecialVisualizations.ts b/UI/SpecialVisualizations.ts
index 2f6547007..f0815d406 100644
--- a/UI/SpecialVisualizations.ts
+++ b/UI/SpecialVisualizations.ts
@@ -10,6 +10,8 @@ import Locale from "../UI/i18n/Locale";
import {ImageUploadFlow} from "./Image/ImageUploadFlow";
import {Translation} from "./i18n/Translation";
import State from "../State";
+import ShareButton from "./ShareButton";
+import Svg from "../Svg";
export class SubstitutedTranslation extends UIElement {
private readonly tags: UIEventSource;
@@ -196,25 +198,21 @@ export default class SpecialVisualizations {
}
],
constr: (tagSource: UIEventSource, args) => {
- if (navigator.share) {
- return new FixedUiElement("Share").onClick(() => {
-
- let name = tagSource["name"]
- let title= State.state.layoutToUse.data.title.txt
- if(name === undefined){
- name = title
- }else{
- name = `${name} (${title})`
- }
-
- navigator.share({
- url: args[0] ?? window.location.href,
- title: name,
- text: State.state.layoutToUse.data.shortDescription.txt
- })
- })
+ if (window.navigator.share) {
+ const title = State.state.layoutToUse.data.title.txt;
+ let name = tagSource.data.name;
+ if(name){
+ name += `${name} (${title})`
+ }else{
+ name = title;
+ }
+ return new ShareButton(Svg.share_svg(), {
+ title: name,
+ url: args[0] ?? window.location.href,
+ text: State.state.layoutToUse.data.shortDescription.txt
+ })
} else {
- return new FixedUiElement("")
+ return new Combine([""])
}
}
diff --git a/assets/tagRenderings/questions.json b/assets/tagRenderings/questions.json
index 3ffefa6ac..d0591b1d8 100644
--- a/assets/tagRenderings/questions.json
+++ b/assets/tagRenderings/questions.json
@@ -46,5 +46,15 @@
"key": "opening_hours",
"type": "opening_hours"
}
+ },
+ "description": {
+ "question": {
+ "nl": "Zijn er extra zaken die je niet in de bovenstaande vragen kwijt kon? Zet deze in de descriptionHerhaal geen antwoorden die je reeds gaf",
+ "en": "Is there still something relevant you couldn't give in the previous questions? Add it here. Don't repeat already stated facts"
+ },
+ "render": "{description}",
+ "freeform": {
+ "key": "description"
+ }
}
}
\ No newline at end of file
diff --git a/assets/translations.json b/assets/translations.json
index ed3416956..d5ce8bf76 100644
--- a/assets/translations.json
+++ b/assets/translations.json
@@ -709,8 +709,8 @@
"de": "
Kundenspezifische Themen
Dies sind zuvor besuchte benutzergenerierte Themen"
},
"aboutMapcomplete": {
- "en": "
About MapComplete
MapComplete is an OpenStreetMap editor that is meant to help everyone to easily add information on a single theme.
Only features relevant to a single theme are shown with a few predefined questions, in order to keep things simple and extremly user-friendly.The theme maintainer can also choose a language for the interface, choose to disable elements or even to embed it into a different website without any UI-element at all.
However, another important part of MapComplete is to always offer the next step to learn more about OpenStreetMap:
An iframe without UI-elements will link to a full-screen version
The fullscreen version offers information about OpenStreetMap
If you're not logged in, you're asked to log in
If you answered a single question, you are allowed to add points
At a certain point, the actual added tags appear which later get linked to the wiki...
Do you notice an issue with MapComplete? Do you have a feature request? Do you want to help translating? Head over to the source code or issue tracker.
",
- "nl": "
Over MapComplete
MapComplete is een OpenStreetMap-editor om eenvoudig informatie toe te voegen over één enkel onderwerp.
Om de editor zo simpel en gebruiksvriendelijk mogelijk te houden, worden enkel objecten relevant voor het thema getoond.Voor deze objecten kunnen dan vragen beantwoord worden, of men kan een nieuw punt van dit thema toevoegen.De maker van het thema kan er ook voor opteren om een aantal elementen van de gebruikersinterface uit te schakelen of de taal ervan in te stellen.
Een ander belangrijk aspect is om bezoekers stap voor stap meer te leren over OpenStreetMap:
Een iframe zonder verdere uitleg linkt naar de volledige versie van MapComplete
De volledige versie heeft uitleg over OpenStreetMap
Als je niet aangemeld bent, wordt er je gevraagd dit te doen
Als je minstens één vraag hebt beantwoord, kan je punten gaan toevoegen.
Heb je genoeg changesets, dan verschijnen de tags die wat later doorlinken naar de wiki
Merk je een bug of wil je een extra feature? Wil je helpen vertalen? Bezoek dan de broncode en issue tracker
",
+ "en": "
About MapComplete
MapComplete is an OpenStreetMap editor that is meant to help everyone to easily add information on a single theme.
Only features relevant to a single theme are shown with a few predefined questions, in order to keep things simple and extremly user-friendly.The theme maintainer can also choose a language for the interface, choose to disable elements or even to embed it into a different website without any UI-element at all.
However, another important part of MapComplete is to always offer the next step to learn more about OpenStreetMap:
An iframe without UI-elements will link to a full-screen version
The fullscreen version offers information about OpenStreetMap
If you're not logged in, you're asked to log in
If you answered a single question, you are allowed to add points
At a certain point, the actual added tags appear which later get linked to the wiki...
Do you notice an issue with MapComplete? Do you have a feature request? Do you want to help translating? Head over to the source code or issue tracker. Follow the edit count on OsmCha
",
+ "nl": "
Over MapComplete
MapComplete is een OpenStreetMap-editor om eenvoudig informatie toe te voegen over één enkel onderwerp.
Om de editor zo simpel en gebruiksvriendelijk mogelijk te houden, worden enkel objecten relevant voor het thema getoond.Voor deze objecten kunnen dan vragen beantwoord worden, of men kan een nieuw punt van dit thema toevoegen.De maker van het thema kan er ook voor opteren om een aantal elementen van de gebruikersinterface uit te schakelen of de taal ervan in te stellen.
Een ander belangrijk aspect is om bezoekers stap voor stap meer te leren over OpenStreetMap:
Een iframe zonder verdere uitleg linkt naar de volledige versie van MapComplete
De volledige versie heeft uitleg over OpenStreetMap
Als je niet aangemeld bent, wordt er je gevraagd dit te doen
Als je minstens één vraag hebt beantwoord, kan je punten gaan toevoegen.
Heb je genoeg changesets, dan verschijnen de tags die wat later doorlinken naar de wiki
Merk je een bug of wil je een extra feature? Wil je helpen vertalen? Bezoek dan de broncode en issue tracker. Volg de edits op OsmCha
",
"de": "
Über MapComplete
MapComplete ist ein OpenStreetMap-Editor, der jedem helfen soll, auf einfache Weise Informationen zu einem Einzelthema hinzuzufügen.
Nur Merkmale, die für ein einzelnes Thema relevant sind, werden mit einigen vordefinierten Fragen gezeigt, um die Dinge einfach und extrem benutzerfreundlich zu halten.Der Themen-Betreuer kann auch eine Sprache für die Schnittstelle wählen, Elemente deaktivieren oder sogar in eine andere Website ohne jegliches UI-Element einbetten.
Ein weiterer wichtiger Teil von MapComplete ist jedoch, immer den nächsten Schritt anzubietenum mehr über OpenStreetMap zu erfahren:
Ein iframe ohne UI-Elemente verlinkt zu einer Vollbildversion
Die Vollbildversion bietet Informationen über OpenStreetMap
Wenn Sie nicht eingeloggt sind, werden Sie gebeten, sich einzuloggen
Wenn Sie eine einzige Frage beantwortet haben, dürfen Sie Punkte hinzufügen
An einem bestimmten Punkt erscheinen die tatsächlich hinzugefügten Tags, die später mit dem Wiki verlinkt werden...
Fällt Ihnen ein Problem mit MapComplete auf? Haben Sie einen Feature-Wunsch? Wollen Sie beim Übersetzen helfen? Gehen Sie zum Quellcode oder zur Problemverfolgung.