StephanWagner / svgMap

svgMap is a JavaScript library that lets you easily create an interactable world map comparing customizable data for each country.
MIT License
255 stars 43 forks source link

Add ocean color variable #33

Open benstigsen opened 3 years ago

benstigsen commented 3 years ago

Currently it's only possible to change colorMax, colorMin and colorNoData but not the ocean color (at least not when reading the README)

StephanWagner commented 3 years ago

Actually, the ocean color is just the background color of the wrapper. You could overwrite that with CSS:

.svgMap-map-wrapper {
  background: #d9ecff;
}
StephanWagner commented 3 years ago

Keeping this issue open as this might me a nice option.

m1rm commented 2 months ago

We now have sass variables to set the colors. The README.md has a section on styling https://github.com/StephanWagner/svgMap?tab=readme-ov-file#styling. $oceanColor should suit your need @benstigsen . This issue can be closed