Zoom with rectangle

Topics: General, Help, Windows Forms
Nov 3, 2010 at 8:20 PM

Hi,

I'm a very beginner with great maps in vb.net
I'd like to zoom on the map by drawing a rectangle. Is there a specific function for that, or do I have a to deal with mousedown, mousedrag and mouseup?
Thanks for the answer.
Johann
 

Nov 3, 2010 at 9:15 PM

Hold down shift and drag your left mouse buton.

Read this page: http://greatmaps.codeplex.com/documentation

 

Mark

Nov 3, 2010 at 10:54 PM

Thanks for your answer,

But I would like to use it without having to hold the shift button. 

In my application, I have differents pointing modes. When the user has to select something on the map, the left button will handle a selection.

Otherwise, it will zoom by dragging, but without having to hold down the shit button.

I'll try tomorow.

PS: Sorry for my english, I hope youcan  understand me.

Coordinator
Nov 3, 2010 at 11:06 PM

;} just hold shit button

Nov 17, 2010 at 4:24 PM

Yes, ok for the shit (or shift ;) button), but I would like to do it without having to hold down the shift button, directly by dragging.

Coordinator
Nov 17, 2010 at 4:35 PM

make your own selector then ;}

Nov 17, 2010 at 4:46 PM
Thanks for your answer. That means I have to catch the mouseDown event, draw rectangle as the mouse drag (with mouseDragEvent) and zoom once the mouseUp is raised, or is there a simpler way?
Coordinator
Nov 17, 2010 at 4:50 PM

you can delete the check which requires holding shift ;}

Nov 17, 2010 at 4:52 PM
How can I do that?
Coordinator
Nov 17, 2010 at 5:03 PM

find the place where it's done, and modify it

Nov 17, 2010 at 5:05 PM
Ok, so I have to change the source code of the lib. Thanks for your help