Zoom in and out using buttons instead of mosue wheel

Topics: Windows Forms
Aug 20, 2013 at 10:48 AM
Hi.

Great work man, thanks for code,
I am using this for my project, but i have a problem while using zoom,
if i zoom map using button created by me then i lost all pins and routes on my map, but i use mouse wheel to zoom then it works fine.
what i need to do to zoom using buttons without loosing pins and routes.
code i write on zoomin button click is :
 gmap.Zoom *= 1.05;
  gmap.Position = new PointLatLng(11.052535, 17.573322);
            GMapMarkerGoogleRed marker = new GMapMarkerGoogleRed(Pnt);
            GMapOverlay markersOverlay = new GMapOverlay(gmap, "markers1");
            markersOverlay.Markers.Add(marker);
            var markerToolTip = new GMapRoundedToolTip(marker);
            marker.ToolTipText = "with zoom";
            markersOverlay.Markers.Add(marker);
            gmap.Overlays.Add(markersOverlay);
plz mail me on sumit0405@gmail.com.
thanks
Sumit
Aug 20, 2013 at 11:22 AM
Thanks
I solve it by myself