origo-map / draw-plugin

Draw tool plugin for Origo
MIT License
1 stars 4 forks source link

Alternative to fill color for color blind people #50

Open sonjahalmstad opened 2 years ago

sonjahalmstad commented 2 years ago

We have users who are color blind and they suggest that it would be useful to add hatched or dotted fillings for drawn polygons. Second best would be to add more colors.

asemoller commented 2 years ago

You can actually put any color in the html file like this:

drawTools: {
  "Polygon": ["freehand"],
  "LineString": ["freehand"]
  },
  palette: ['rgb(166,206,227)','rgb(31,120,180)','rgb(178,223,138)','rgb(51,160,44)','rgb(251,154,153)','rgb(227,26,28)','rgb(253,191,111)','rgb(255,127,0)','rgb(202,178,214)','rgb(106,61,154)','rgb(255,255,153)','rgb(255,255,0)','rgb(255,153,255)','rgb(255,0,255)','rgb(177,89,40)','rgb(128,128,128)','rgb(0,0,0)']
});