Hi,
I would like to make a custom ExtentInteractiveOverlay that allows the user to pan with left click and zoom in with right click+drag, however the enum for RightClickDragMode only supports zoom out. Any help would be appreciated.
Thanks,
Ryan
Hi,
I would like to make a custom ExtentInteractiveOverlay that allows the user to pan with left click and zoom in with right click+drag, however the enum for RightClickDragMode only supports zoom out. Any help would be appreciated.
Thanks,
Ryan
Ryan,
You should override the MouseDownCore and MouseUpCore functions for your custom interactive overlay that inherite from the ExtentInteractiveOverlay, here is the override code below:
Please note, in the MouseDownCore method, you should set the mode to pan for left click and set the mode to zoom in for right click. In the MouseUpCore method, please add your own logics there to zoom in for right click and pan for left click. Currently I just provide your the guide to how should you do that when you override the methods you encounter any more questions please let me know,
protected override InteractiveResult MouseDownCore(InteractionArguments interactionArguments)
{
// Add your own logics here.
}
protected override InteractiveResult MouseUpCore(InteractionArguments interactionArguments)
{
// Add your own logics here.
}
Thanks,
Scott,