Hi,
I'm trying to use EMS vector maps in Vega.
I manage to retrieve the data and map it with the following bits of code:
[...]
{name:"franceDept"
url:{
%type%:"emsfile"
name:"France Departments"
}
format:{property:"features",feature:"geometry"}
}
[...]
marks:[
{
type:"shape"
"from":{"data":"dataDept"}
"encode":{
"update":{
"strokeWidth":{"value":0.5}
"stroke":{"value":"#000000"}
}
"hover":{"strokeWidth": {"value": 100},
"stroke": {"value": "red"},
"zindex": {"value": 1}
}
}
"transform":[
{"type":"geoshape","projection":"projection"}
]
}
]
But when I try to fill each individual shape with a color, it seems that it's the outside of the shape that's filled.
Found this post here which points to a winding order problem.
Is there a way to solve this?
Tried modifyng the coordinates array of the dataset with the reverse expression, but no luck...
Thanks.
Regards.