MapmyIndia Maps API:
Corona Control
Method:
MapmyIndia.covidLayer({'map':mapobj});
Optional Parameters:
1) position
Select
topleft
topright
bottomleft
bottomright
/*position of control map default bottomleft*/
2) defaultLayer
/*load default layer on initialization, get all layers by calling new MapmyIndia.covidLayer(), ie. defaultLayer:"corona_isolation_ward"*/
3) multiple
false
true
/*position of control map default bottomleft*/
4) info
true
false
/*to show info in popup on click true/false default true)*/
5) infocallback
/*set a callback method it can after click on corona layer*/
6) expand
false
true
/*expand layer control UI true/false default false)*/
7) showControl
true
false
/*to show or not show controls UI on map default true, its for directly loading defaultLayer only*/
8) skiplayerIds
/*to skip any layer from control ie. skiplayerIds:['state_corona_stats','containment_zone_gradient']*/