Feature : Remove some department of a country
A great feature: Remove a department (a region) of a country to focus only a particular zone.
For example : United State : Could be interesting to hide alaska and Hawai. Spain : Could be interesting to hide the canary islands. It could be interesting to have a way to display only 'some' department.
Proposal :
SimpleMap(
hide: ['US-HI', 'US-AK'],
);
SimpleMap(
show: ['US-AR', 'US-AZ'],
);
Removing data from the json is easy, but as the map have dimensions, it's not easy to update dimensions after removing :').
Some illustration :
Actually the country json data didn't contain for each department, the linked position (top left x-y and bottom right x-y) inside the country map. With this data it could be possible to compute the new country size after filtering some department.
I can help. I need to understand from which website / api you get the SVG data.
The goal of this feature is to transfrom for example france region instruction from ;
{"n": "Alsace", "u": "FR-A", "i": [...]}
To
{"n": "Alsace", "u": "FR-A", "p": {"a": "x,y", "b": "x,y"}, i": [...]}
(p = position) (a = top left) (b = bottom right)
Also, by adding (if possible) some new data inside Map instruction. If we can have for each department their LatLong, it could improve maybe the Marker feature. (it will increase precision)