Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support colors for select from map markers #5278

Closed
3 tasks done
lognaturel opened this issue Sep 7, 2022 · 0 comments · Fixed by #5280
Closed
3 tasks done

Support colors for select from map markers #5278

lognaturel opened this issue Sep 7, 2022 · 0 comments · Fixed by #5280
Assignees
Milestone

Comments

@lognaturel
Copy link
Member

lognaturel commented Sep 7, 2022

  • Given that I have a form definition with a select from map
    And that a select option has a value set for a property with name marker-color
    And that the value is valid based on the criteria below
    When I open the select from map question
    Then the marker for that option should be the specified color

  • Given that I have a form definition with a select from map
    And that a select option has no value set for a property with name marker-color
    When I open the select from map question
    Then the marker for that option should be the default color

  • Given that I have a form definition with a select from map
    And that a select option has a value set for a property with name marker-color
    And that the value is NOT valid based on the criteria below
    When I open the select from map question
    Then the marker for that option should be the default color

Color criteria from simple style spec:

// Colors can be in short form:
//   "#ace"
// or long form
//   "#aaccee"
// with or without the # prefix.
// Colors are interpreted the same as in CSS,
// in #RRGGBB and #RGB order.

Select options may come from a geojson file, a csv file, or be internal to the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants