Closed MortenHofft closed 2 months ago
We are starting to look at the style customization possibilities of our SwissBIF portal and we were wondering if it’s possible to select other colors for the points on the map in the same way as the map api.
Yes that is possible, add this to the theme https://github.com/gbif/hp-swiss-bif/blob/master/_includes/js/config.js#L8 mapDensityColors: ['#051937', '#004d7a', '#008793', '#00bf72', '#a8eb12'] // have to be 5 colours
mapDensityColors: ['#051937', '#004d7a', '#008793', '#00bf72', '#a8eb12'] // have to be 5 colours
Thanks, it was exactly what we were looking for ! We will make some tests to see if some colors can be nice with our theme.
Yes that is possible, add this to the theme https://github.com/gbif/hp-swiss-bif/blob/master/_includes/js/config.js#L8
mapDensityColors: ['#051937', '#004d7a', '#008793', '#00bf72', '#a8eb12'] // have to be 5 colours