Some further improvements to the mapcomplete-changes theme
This commit is contained in:
parent
2e2a6965e7
commit
68c338e764
6 changed files with 492 additions and 28 deletions
|
@ -46,6 +46,12 @@
|
|||
"en": "Shows all MapComplete changes"
|
||||
},
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "render_id",
|
||||
"render": {
|
||||
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "contributor",
|
||||
"render": {
|
||||
|
@ -73,9 +79,230 @@
|
|||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"icon": {"render":"teardrop:#00cc00",
|
||||
"mappings": [{"if":"theme=aed","then":"./assets/themes/aed/logo.svg"},{"if":"theme=aed_brugge","then":"./assets/themes/aed/logo.svg"},{"if":"theme=artwork","then":"./assets/themes/artwork/artwork.svg"},{"if":"theme=benches","then":"./assets/themes/benches/bench_poi.svg"},{"if":"theme=bicyclelib","then":"./assets/themes/bicyclelib/logo.svg"},{"if":"theme=binoculars","then":"./assets/layers/binocular/telescope.svg"},{"if":"theme=bookcases","then":"./assets/themes/bookcases/bookcase.svg"},{"if":"theme=buurtnatuur","then":"./assets/themes/buurtnatuur/groen_logo.svg"},{"if":"theme=cafes_and_pubs","then":"./assets/layers/cafe_pub/pub.svg"},{"if":"theme=campersite","then":"./assets/themes/campersite/caravan.svg"},{"if":"theme=charging_stations","then":"./assets/themes/charging_stations/logo.svg"},{"if":"theme=climbing","then":"./assets/themes/climbing/climbing_icon.svg"},{"if":"theme=cycle_highways","then":"./assets/themes/cycle_highways/fietssnelwegen-logo.svg"},{"if":"theme=cycle_infra","then":"./assets/themes/cycle_infra/cycle-infra.svg"},{"if":"theme=cyclenodes","then":"./assets/themes/cyclenodes/logo.svg"},{"if":"theme=cyclestreets","then":"./assets/themes/cyclestreets/F111.svg"},{"if":"theme=cyclofix","then":"./assets/themes/cyclofix/logo.svg"},{"if":"theme=drinking_water","then":"./assets/themes/drinking_water/logo.svg"},{"if":"theme=entrances","then":"./assets/layers/entrance/door.svg"},{"if":"theme=etymology","then":"./assets/layers/etymology/logo.svg"},{"if":"theme=facadegardens","then":"./assets/themes/facadegardens/geveltuin.svg"},{"if":"theme=food","then":"./assets/layers/food/restaurant.svg"},{"if":"theme=fritures","then":"./assets/themes/fritures/logo.svg"},{"if":"theme=fruit_trees","then":"./assets/themes/fruit_trees/fruit_tree.svg"},{"if":"theme=ghostbikes","then":"./assets/themes/ghostbikes/logo.svg"},{"if":"theme=grb","then":"./assets/themes/grb_import/housenumber_blank.svg"},{"if":"theme=grb_fixme","then":"./assets/svg/bug.svg"},{"if":"theme=missing_streets","then":"./assets/svg/robot.svg"},{"if":"theme=hackerspaces","then":"./assets/themes/hackerspaces/glider.svg"},{"if":"theme=hailhydrant","then":"./assets/themes/hailhydrant/logo.svg"},{"if":"theme=mapcomplete-changes","then":"./assets/svg/logo.svg"},{"if":"theme=maps","then":"./assets/themes/maps/logo.svg"},{"if":"theme=nature","then":"./assets/themes/nature/logo.svg"},{"if":"theme=natuurpunt","then":"./assets/themes/natuurpunt/natuurpunt.png"},{"if":"theme=notes","then":"./assets/svg/resolved.svg"},{"if":"theme=observation_towers","then":"./assets/layers/observation_tower/Tower_observation.svg"},{"if":"theme=openwindpowermap","then":"./assets/themes/openwindpowermap/wind_turbine.svg"},{"if":"theme=parkings","then":"./assets/themes/parkings/parkings.svg"},{"if":"theme=personal","then":"./assets/svg/addSmall.svg"},{"if":"theme=play_forests","then":"./assets/layers/play_forest/icon.svg"},{"if":"theme=playgrounds","then":"./assets/themes/playgrounds/playground.svg"},{"if":"theme=postal_codes","then":"./assets/themes/postal_codes/townhall.svg"},{"if":"theme=postboxes","then":"./assets/themes/postboxes/postbox.svg"},{"if":"theme=shops","then":"./assets/themes/shops/shop.svg"},{"if":"theme=sidewalks","then":"./assets/svg/bug.svg"},{"if":"theme=speelplekken","then":"./assets/themes/speelplekken/logo.svg"},{"if":"theme=sport_pitches","then":"./assets/layers/sport_pitch/table_tennis.svg"},{"if":"theme=street_lighting","then":"./assets/layers/street_lamps/street_lamp.svg"},{"if":"theme=street_lighting_assen","then":"./assets/layers/street_lamps/street_lamp.svg"},{"if":"theme=surveillance","then":"./assets/themes/surveillance/logo.svg"},{"if":"theme=toerisme_vlaanderen","then":"./assets/svg/teardrop_with_hole_green.svg"},{"if":"theme=toilets","then":"./assets/themes/toilets/toilets.svg"},{"if":"theme=trees","then":"./assets/themes/trees/logo.svg"},{"if":"theme=uk_addresses","then":"./assets/themes/uk_addresses/housenumber_unknown.svg"},{"if":"theme=waste_basket","then":"./assets/themes/waste_basket/waste_basket.svg"}]
|
||||
|
||||
"icon": {
|
||||
"render": "teardrop:#00cc00",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "theme=aed",
|
||||
"then": "./assets/themes/aed/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=aed_brugge",
|
||||
"then": "./assets/themes/aed/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=artwork",
|
||||
"then": "./assets/themes/artwork/artwork.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=benches",
|
||||
"then": "./assets/themes/benches/bench_poi.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=bicyclelib",
|
||||
"then": "./assets/themes/bicyclelib/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=binoculars",
|
||||
"then": "./assets/layers/binocular/telescope.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=bookcases",
|
||||
"then": "./assets/themes/bookcases/bookcase.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=buurtnatuur",
|
||||
"then": "./assets/themes/buurtnatuur/groen_logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=cafes_and_pubs",
|
||||
"then": "./assets/layers/cafe_pub/pub.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=campersite",
|
||||
"then": "./assets/themes/campersite/caravan.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=charging_stations",
|
||||
"then": "./assets/themes/charging_stations/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=climbing",
|
||||
"then": "./assets/themes/climbing/climbing_icon.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=cycle_highways",
|
||||
"then": "./assets/themes/cycle_highways/fietssnelwegen-logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=cycle_infra",
|
||||
"then": "./assets/themes/cycle_infra/cycle-infra.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=cyclenodes",
|
||||
"then": "./assets/themes/cyclenodes/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=cyclestreets",
|
||||
"then": "./assets/themes/cyclestreets/F111.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=cyclofix",
|
||||
"then": "./assets/themes/cyclofix/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=drinking_water",
|
||||
"then": "./assets/themes/drinking_water/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=entrances",
|
||||
"then": "./assets/layers/entrance/door.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=etymology",
|
||||
"then": "./assets/layers/etymology/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=facadegardens",
|
||||
"then": "./assets/themes/facadegardens/geveltuin.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=food",
|
||||
"then": "./assets/layers/food/restaurant.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=fritures",
|
||||
"then": "./assets/themes/fritures/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=fruit_trees",
|
||||
"then": "./assets/themes/fruit_trees/fruit_tree.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=ghostbikes",
|
||||
"then": "./assets/themes/ghostbikes/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=grb",
|
||||
"then": "./assets/themes/grb_import/housenumber_blank.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=grb_fixme",
|
||||
"then": "./assets/svg/bug.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=missing_streets",
|
||||
"then": "./assets/svg/robot.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=hackerspaces",
|
||||
"then": "./assets/themes/hackerspaces/glider.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=hailhydrant",
|
||||
"then": "./assets/themes/hailhydrant/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=mapcomplete-changes",
|
||||
"then": "./assets/svg/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=maps",
|
||||
"then": "./assets/themes/maps/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=nature",
|
||||
"then": "./assets/themes/nature/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=natuurpunt",
|
||||
"then": "./assets/themes/natuurpunt/natuurpunt.png"
|
||||
},
|
||||
{
|
||||
"if": "theme=notes",
|
||||
"then": "./assets/svg/resolved.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=observation_towers",
|
||||
"then": "./assets/layers/observation_tower/Tower_observation.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=openwindpowermap",
|
||||
"then": "./assets/themes/openwindpowermap/wind_turbine.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=parkings",
|
||||
"then": "./assets/themes/parkings/parkings.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=personal",
|
||||
"then": "./assets/svg/addSmall.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=play_forests",
|
||||
"then": "./assets/layers/play_forest/icon.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=playgrounds",
|
||||
"then": "./assets/themes/playgrounds/playground.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=postal_codes",
|
||||
"then": "./assets/themes/postal_codes/townhall.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=postboxes",
|
||||
"then": "./assets/themes/postboxes/postbox.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=shops",
|
||||
"then": "./assets/themes/shops/shop.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=sidewalks",
|
||||
"then": "./assets/svg/bug.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=speelplekken",
|
||||
"then": "./assets/themes/speelplekken/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=sport_pitches",
|
||||
"then": "./assets/layers/sport_pitch/table_tennis.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=street_lighting",
|
||||
"then": "./assets/layers/street_lamps/street_lamp.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=street_lighting_assen",
|
||||
"then": "./assets/layers/street_lamps/street_lamp.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=surveillance",
|
||||
"then": "./assets/themes/surveillance/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=toerisme_vlaanderen",
|
||||
"then": "./assets/svg/teardrop_with_hole_green.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=toilets",
|
||||
"then": "./assets/themes/toilets/toilets.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=trees",
|
||||
"then": "./assets/themes/trees/logo.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=uk_addresses",
|
||||
"then": "./assets/themes/uk_addresses/housenumber_unknown.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=waste_basket",
|
||||
"then": "./assets/themes/waste_basket/waste_basket.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconSize": "30,30,bottom"
|
||||
}
|
||||
|
@ -156,15 +383,16 @@
|
|||
"_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"
|
||||
}]
|
||||
|
||||
"+mapRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point"
|
||||
],
|
||||
"icon": "statistics:black",
|
||||
"iconSize": "30,30,center"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue