Hello,
I'm trying to change the key mask on the track zoom. I know I could use server side code like:
Map1.MapTools.MouseMapTool.TrackZoomMaskType = TrackZoomMaskType.None;
However, that does not work during a callback. Instead, I've tried to accomplish this on the client side using OpenLayers. I've tried the following:
var controls = map.getControlsByClass('OpenLayers.Control.ZoomBox');
if (controls.length > 0) {
var zoomBox = controls[0];
if (arg == true)
zoomBox.keyMask = OpenLayers.Handler.MOD_NONE;
else
zoomBox.keyMask = OpenLayers.Handler.MOD_SHIFT;
}
My problem is that map.getControlByClass('OpenLAyers.Control.ZoomBox') returns null. Does ThinkGeo rename this class or use a special class for the track zoom control on the client side?
Thanks,
Joe