ThinkGeo.com    |     Documentation    |     Premium Support

Change mouse event & Shape file view style

Good day.

We have two questions.

First, we want drag zoom in only with left mouse (non using drag key).
We create this code.
baseMap.ExtentOverlay.LeftClickDragMode = MapLeftClickDragMode.ZoomInWithKey;
baseMap.ExtentOverlay.LeftClickDragKey = System.Windows.Forms.Keys.None;
It works well.
But this code is not blocking zoom in with mouse right click drag or wheel drag event.

Second, We using base world map is shape file.
We want view this map with spherical style. Is it possible?

Please check this problems.
Best regards.

Hi Binary,

  1. I think you can try this to disable right click drag and wheel button.

map.ExtentOverlay.RightClickDragMode = MapRightClickDragMode.Disabled;
map.ExtentOverlay.MouseWheelMode = MapMouseWheelMode.Disabled;

  1. I think we should don’t have an existing solution for render shape file just like GoogleEarth did. I guess if you have a special projection it maybe support that, but I hadn’t met related scenario before for this requirement.

Regards,

Don

Hi Binary,

  1. I think you can try this code to disable right click drag and wheel button.

map.ExtentOverlay.RightClickDragMode = MapRightClickDragMode.Disabled;
map.ExtentOverlay.MouseWheelMode = MapMouseWheelMode.Disabled;

  1. Do you means render shape file just like GoogleEarth? I think we don’t have an existing solution for that. I guess maybe special projection can do something like that, but I hadn’t met any related scenario or sample, maybe you can do some try follow this thinking.

Regards,

Don

Hi Don,

Thank you for reply.

We are test your code.
But, we didn’t success problem.

--------------- Code ----------------
baseMap.ExtentOverlay.PanMode = MapPanMode.Disabled;
baseMap.ExtentOverlay.LeftClickDragMode = MapLeftClickDragMode.ZoomInWithKey;
baseMap.ExtentOverlay.LeftClickDragKey = System.Windows.Forms.Keys.None;
baseMap.ExtentOverlay.RightClickDragMode = MapRightClickDragMode.Disabled;
baseMap.ExtentOverlay.MouseWheelMode = MapMouseWheelMode.Disabled;

We want blocking this drag zoom function with wheel & right buttons.

But your code blocking “mouse wheel zoom in & zoom out function” & “right button click functions”.
Your code don’t blocking mouse wheel button click + drag, and right button click drag.

Second, I’m sorry I don’t know this map style name. So, we are project is planimetric(?) map.
We only using base map(background map) is world.shp file.
We wan’t show this map style.(Spherical??)

Please recheck this problems.
Thank you.

Hi Binary,

Thanks for your update.

It looks the right click drag and wheel button functions have a bug here, I will ask our developer to double check that and work on that if it’s a bug. If we have any news about that we will update here.

For your 2nd question, from the screen shot it looks that’s a special projection, but I don’t know what’s it’s id, so I think you should want to find it’s id from the website like: epsg.io or spatialreference.org

Wish that’s helpful.

Regards,

Don

Hi Binary,

We had fixed this issue, please get 9.0.692.0 or higher version (Include latest 10.0) to get this fix.

Please keep your eyes on our product center, we will publish this version in one or two days.

Regards,

Don

Hi Don,

We are check your update on product center.
We resolve this problem with version 9.0.693.0.

Thank you.
Best regards.

Hi Binary,

I am glad to hear that’s helpful.

Any question please let us know.

Regards,

Don