Skip to content

Commit

Permalink
Add order property
Browse files Browse the repository at this point in the history
(closes osmlab#114)
  • Loading branch information
bhousel committed Aug 27, 2019
1 parent b1ad538 commit 7a7d0db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
26 changes: 14 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Resource files look like this:
"extendedDescription": "OpenStreetMap is built by a community of mappers that..."
"signupUrl": "https://slack.openstreetmap.us/",
"url": "https://osmus.slack.com",
"order": 4,
"contacts": [
{
"name" : "Barney Rubble",
Expand All @@ -94,13 +95,13 @@ Resource files look like this:
],
"events": [
{
"id": "sotmus2017",
"id": "sotmus2019",
"i18n": true,
"name": "State of the Map US 2017",
"description": "Join the OpenStreetMap community at State of the Map US in Boulder, Colorado.",
"where": "Boulder, Colorado, USA",
"when": "2017-10-20",
"url": "https://2017.stateofthemap.us/"
"name": "State of the Map US 2019",
"description": "Join the OpenStreetMap community at State of the Map US in Minneapolis, Minnesota.",
"where": "Minneapolis, Minnesota",
"when": "2019-sep-05",
"url": "https://2019.stateofthemap.us/"
}
]
}
Expand Down Expand Up @@ -139,6 +140,7 @@ the resource to a .geojson feature. If null, this is a global resource.
* __`countryCodes`__ - (optional) Array of [two letter country codes](https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes)
where the community is active
* __`languageCodes`__ - (optional) Array of [two letter](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or [three letter](https://en.wikipedia.org/wiki/List_of_ISO_639-3_codes) spoken by this community
* __`order`__ - (optional) When several resources with same geography are present, this adjusts the display order (default = 0, higher numbers display more prominently)

Each community resource must have at least one contact person:

Expand Down Expand Up @@ -188,13 +190,13 @@ values (useful for events with a wider audience).
...
"events": [
{
"id": "sotmus2017",
"id": "sotmus2019",
"i18n": true,
"name": "State of the Map US 2017",
"description": "Join the OpenStreetMap community at State of the Map US in Boulder, Colorado.",
"where": "Boulder, Colorado, USA",
"when": "2017-10-20",
"url": "https://2017.stateofthemap.us/"
"name": "State of the Map US 2019",
"description": "Join the OpenStreetMap community at State of the Map US in Minneapolis, Minnesota.",
"where": "Minneapolis, Minnesota",
"when": "2019-sep-05",
"url": "https://2019.stateofthemap.us/"
}
}
```
Expand Down
5 changes: 5 additions & 0 deletions schema/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
}
}
},
"order": {
"$comment": "When several resources with same geography are present, this controls the display order.",
"description": "(optional) Suggested sort order for this resource (default = 0, higher numbers display more prominently)",
"type": "number"
},
"events": {
"description": "(optional) Featured events for this resource",
"type": "array",
Expand Down

0 comments on commit 7a7d0db

Please sign in to comment.