I have a JSON file with states of USA. Is it possible to hide whole map (including countries, oceans, etc.), except of one state or except of some quantity of states using only pure javascript or jquery? For example, Wyoming has these coordinates (Lat, Lng):
{
"name": "Wyoming",
"id": "WY",
"coords": [
[41.0037, -104.0556],
[44.9949, -104.0584],
[44.9998, -111.0539],
[40.9986, -111.0457],
[41.0006, -104.0556]
]
}
I would like to implement it with fillColor: #FFF
and fillOpacity: 1
.
Should I have coordinates of whole world (rofl) to except e.g. Wyoming from this filling options?