Set Per-Challenge Options
Following up on #66
Options that would be good to have per-challenge in order of prio
- [x] Custom tile layer (enter URL template)
- [x] Default tile layer (select from MapRoulette choices)
- [x] Default zoom level
- [x] Min - Max zoom level
- [ ] Initial popup state (visible or hidden)
- [ ] Text for 'False Positive' button
- [ ] Custom popup text / markdown (perhaps use placeholders to populate with property values)
- [ ] Initial UI state (collapsed or expanded)
Also, a contact email (this should be settable at project level and perhaps overridable at challenge level)
The custom tile layers are definitely the highest value item in this list
The options that were not included in #102 where: Initial popup state (not sure what this is actually) Text for false positive Custom popup text / markdown (would need a little more information about this) Initial UI state (I am guessing this is collapsing the sidebar in the UI, but not 100% sure)
Ignore last PR, it was supposed to be for issue #92
@mgcuthbert the initial popup state is whether the leaflet information popup for the geojson geometry is by default not visible (the default now) or visible. In some cases where challenges rely on the feature properties it may be preferable to have these expanded / visible by default.
For custom popup text, this is regarding the same leaflet feature popup. Folks may want to override the default display of the feature properties with the value of one particular property.
Initial UI state is in fact whether sidebar(s) are collapsed or expanded.
Ok perfect, thanks for the clarification. All that makes sense.
Changed ticket to a checklist. I think the remaining items are really nice to have but not immediately essential. Labeling P2