Adapt the zoom of the map

Hello,

I would like show on a map only an aera like a french department.

I've in a database the min and max of latitude and the min and max of longitude of this area.

I search how to adapt the zoom of the map to show on the map the whole area.

Perhaps by Bounds ???

If someone has a solution ?

Thanks

Jean Michel

Hi,


You can use the MapZoomTo method that accepts the desired Bounds of the map as a parameter.
Hello,
Thanks for your help.
I've founded this method just after my post. In first, i search  the Northwest point and the South East of the department (for France) or Region (for Belgique) from my database. In second, with a loop, I search the maps bounds that best match the coordinates of the department of the region.
Take care of you
Very best
Jean Michel

Hi,


Thank you for notifying you found a solution.