// カスタムフィルター効果を作成
const customFilter = Thematika.createCustomFilter('customFilter',
//ここにsvg filterを書く
);
const map = new Thematika.Map({
container: '#map',
width: width,
height: height,
projection: projection,
defs:[customFilter]
});
// GeojsonLayerインスタンスを作成
const worldLayer = new Thematika.GeojsonLayer({
data: geojson,
attr: {
"fill": (d, i) => i % 2 === 0 ? "#8b5cf6" : "#ec4899",
"filter": "url(#customFilter)",
"stroke": '#ffffff',
"stroke-width": 0.5,
"opacity": 0.8,
"cursor": "pointer"
},
});