Zoom In Tool

Topics: SharpMap v2.0
Jul 29, 2013 at 11:50 AM
Hi,

I had tried to create a Zoom In tool for my windows add as i had written the below code on button click
 private void Zoomin_Click(object sender, EventArgs e)
        {   
          //MessageBox.Show("Hi");     
           mapBox1.ActiveTool = MapBox.Tools.ZoomIn;      
            
        }
When i click on the button nothing happens, when i test with messagebox the event is getting fired. Please suggest me a solution.

Regards
Arun Mohan
Jul 29, 2013 at 12:08 PM
Hi,

I solved it.
Aug 6, 2013 at 3:54 AM
I had tried to create a zoom in or zoom out button on winform and use mapBox1.ActiveTool = MapBox.Tools.ZoomIn; but I can't. Please help me
Coordinator
Aug 6, 2013 at 6:59 AM
Set mapbox.Map.Zoom *= 2 to zoom in and mapbox.Map.Zoom /= 2 to zoom out

Remember to do mapbox.Refresh() afterwards
Aug 24, 2013 at 11:37 PM
Thanks petlof