SuperMap.WindowsPhone.Mapping.Map.Zoom C# (CSharp) Method

Zoom() public method

${WP_mapping_Map_method_zoom_D}
public Zoom ( double ratio ) : void
ratio double ${WP_mapping_Map_method_zoom_param_ratio}
return void
        public void Zoom(double ratio)
        {
            if (!double.IsNaN(this.mapResolution))
            {
                Point pnt = this.rootElement.TransformToVisual(this.layerCollectionContainer).Transform(new Point(currentSize.Width / 2.0, currentSize.Height / 2.0));
                pnt.X = Math.Round(pnt.X);
                pnt.Y = Math.Round(pnt.Y);
                Point2D center = this.panLayerToMap(pnt);
                if (!Point2D.IsNullOrEmpty(center))
                {
                    this.zoomAbout(ratio, center, false);
                }
            }
        }
        private void zoomAbout(double factor, Point2D center, bool skipAnimation)