How to specify zoom to a specific country

2 posts / 0 new
Last post
vasavi
How to specify zoom to a specific country

Hi ,

 

I know we can use below to set view to a point and specify zoom level, but is there any way that i can zoom and fit a given country /state on the map?

 

map.setView([lat,lng], zoomLevel);

 

Thanks,

Vasavi


MQBrianCoakley
There is no administrative
There is no administrative area zoom function. The application would need to know the bounds of the area to zoom to it.