Calculating best zoom level to fit geometryLayer's Content

Nov 6, 2009 at 10:04 AM
Edited Nov 6, 2009 at 10:06 AM

Hi All,

I have some geo points in a geometry layer. I want to zoom to all of these points. I am using SetViewCenter Method with average coordinate of these points but I do not know which zoom level is best for viewing these points in same time. 

How can I calculate the best zoom level?

Thanks in advance