Help us translate this website and improve this translation and earn free licenses!
Anonymous user  |  Log in  |  Create Account

KeyDragZoom

The KeyDragZoom is part of the GMaps Utility Library.

Press "ctrl" (you can choose between "ctrl", "alt" and "shift"), click over the map and drag the mouse. It's an alternative to DragZoomControl




Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
Code.aspx.cs
KeyDragZoom keyDragZoom = new KeyDragZoom();
keyDragZoom.key = KeyDragZoom.HotKeyEnum.ctrl;
keyDragZoom.boxStyle = "{border: '4px solid #FFFF00'}";
keyDragZoom.paneStyle = "{backgroundColor: 'black', opacity: 0.2, cursor: 'crosshair'}";

GMap1.addKeyDragZoom(keyDragZoom);
Powered by Subgurim.NET