eurostat / eurostat-map.js

Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.
https://github.com/eurostat/eurostat-map.js
Other
60 stars 4 forks source link

Remove all Strokes possible for Chloropleth Map? #130

Closed schntim closed 7 months ago

schntim commented 11 months ago

Dear Eurostat Developer Team,

I'm trying to style a chloropleth map s.t. it only shows the shapes of the respective NUTS-Level (e.g. countries only). To get rid of all the borders, I have set all the strokewidth settings that are applicable to 0, nevertheless there is still a set of borders visible as depicted in the screenshot below.

Am I missing a stroke setting or is this an issue with the library?

Thank you for your support!

Code (excerpt): map = eurostatmap.map("ch") ... .worldStroke("#FFFFFF00") .worldCoastStroke("#FFFFFF00") .worldCoastStrokeWidth(0) .worldStrokeWidth(0) .coastalMarginWidth(0) .graticuleStrokeWidth(0) .frameStrokeWidth(0) .nutsbnStrokeWidth(0) .cntbnStrokeWidth(0) .cntbnStroke({0:"#FFFFFF00", 1:"FFFFFF00", 2:"FFFFFF00", 3:"#FFFFFF00", oth:"#FFFFFF00", co:"#FFFFFF00"}) ...

Screenshot: eurostatmap (6)

joewdavies commented 7 months ago

Hi,

Apologies, I have only just seen this.

For cntbnStrokeWidth and nutsbnStrokeWidth you must specify the widths for each NUTS level as an object:

image

See https://github.com/eurostat/eurostat-map.js/blob/master/docs/reference.md#styling

and

https://observablehq.com/@joewdavies/eurostat-map-js