hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

Legend component for maps #135

Open ninetteadhikari opened 4 years ago

ninetteadhikari commented 4 years ago

Is your feature request related to a problem? Please describe. UI component for Legend for maps

Acceptance Criteria

Gradient and points legend shown with Dots colors:

image

Ability to collapse/expand a legend by clicking

image

amosnjoroge commented 4 years ago

Hi @ninetteadhikari this may be a duplicate to https://github.com/hikaya-io/dots-frontend/issues/108 and https://github.com/hikaya-io/dots-frontend/issues/109

ninetteadhikari commented 4 years ago

Hi @ninetteadhikari this may be a duplicate to hikaya-io/dots-frontend#108 and hikaya-io/dots-frontend#109

hey @sannleen this ticket is to build the template component for Legend. The frontend tickets I am assuming are to implement the legend itself. I was actually wondering whether its possible to create templates or each time the legend will have to be built custom.. what do you think?

amosnjoroge commented 4 years ago

hey @sannleen this ticket is to build the template component for Legend. The frontend tickets I am assuming are to implement the legend itself.

😄 ahh, got it.

I was actually wondering whether its possible to create templates or each time the legend will have to be built custom.. what do you think?

For the gradient legend we can have a template with default 5 segments and then the ranges will be calculated when displaying the layer. While for the icons we can have the standard traffic light icons and then the labels can be added during layer display