{
"id": "mapcomplete-changes",
"title": {
"en": "Changes made with MapComplete"
},
"shortDescription": {
"en": "Shows changes made by MapComplete"
},
"description": {
"en": "This maps shows all the changes made with MapComplete"
},
"maintainer": "",
"icon": "./assets/svg/logo.svg",
"hideFromOverview": true,
"version": "0",
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"widenFactor": 0.05,
"clustering": false,
"layers": [
{
"id": "mapcomplete-changes",
"name": {
"en": "Changeset centers"
},
"minzoom": 0,
"source": {
"osmTags": "editor~*",
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/mapcomplete-changes/tile_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 8,
"maxCacheAge": 0
},
"calculatedTags": [
"_last_edit:contributor:lc:=feat.properties['_last_edit:contributor'].toLowerCase()"
],
"title": {
"render": {
"en": "Changeset for {theme}"
}
},
"description": {
"en": "Shows all MapComplete changes"
},
"tagRenderings": [
{
"id": "render_id",
"render": {
"en": "Changeset {id}"
}
},
{
"id": "contributor",
"render": {
"en": "Change made by {_last_edit:contributor}"
}
},
{
"id": "theme",
"render": {
"en": "Change with theme {theme}"
},
"mappings": [
{
"if": "theme~http.*",
"then": {
"en": "Change with unofficial theme {theme}"
}
}
]
}
],
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": {
"render": "teardrop:#00cc00"
},
"iconSize": "30,30,center"
}
],
"filter": [
{
"id": "theme-search",
"options": [
{
"osmTags": "theme~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Themename contains {search}"
}
}
]
},
{
"id": "created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Made by contributor {search}"
}
}
]
},
{
"id": "not_created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc!~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Not made by contributor {search}"
}
}
]
}
]
},
{
"builtin": "current_view",
"override": {
"title": "Statistics on changesets in the current view",
"tagRenderings": [
{
"id": "link_to_more",
"render": {
"en": "More statistics can be found here"
}
},
{
"id": "hist_themes",
"render": "{histogram(_embedded_cs:themes, Themename, Number of changesets)}"
},
{
"id": "hist_users",
"render": "{histogram(_embedded_cs:users, Contributor, Number of changesets)}"
}
],
"calculatedTags": [
"_embedded_cs=feat.overlapWith('mapcomplete-changes').map(f => f.feat.properties)",
"_embedded_cs:themes=feat.get('_embedded_cs').map(cs => cs.theme)",
"_embedded_cs:users=feat.get('_embedded_cs').map(cs => cs['_last_edit:contributor'])"
],
"+mapRendering": [
{
"location": [
"point"
],
"icon": "statistics:black",
"iconSize": "30,30,center"
}
]
}
}
]
}