Hi,
We have the same “MapMouseWheel no longer works” issue (thinkgeo.com/forums/MapSuite…fault.aspx) in our WPF Map Control.
The MouseMove event is always firing and our code updates the mouse current coordinates on a status bar, but the map zooming stops working on MouseWheel in some cases.
Any idea? Please help.
Thanks,
Gene
MapMouseWheel stops working
Hi Gene,
The url you provided looks current topic.
Please let me know what’s the scenario you need to use MapMouseWheel event, if you are only want to show something when map zoom changed, please use CurrentExtentChanged or CurrentScaleChanged. Pan or Zoom will fire extent change, pan will fire scale change.
Regards,
Don
Don,
I don’t need to do anything on the MapMouseWheel event in my code. The problem is that the map zooming stops working when user uses the mouse wheel in some cases. I thought this is because the Map control looses focus, but it still does not work when user clicks on the map. Again this not consistent and the MouseMove event always works.
Thanks,
Gene
Hi Gene,
Thanks for let us know that. I tested that in our HowDoISample, but I cannot reproduce it.
Please let me know whether you can reproduce it in our any sample, if you only found that in your project, could you please sent us a test project?
If you cannot upload a sample, I have other 2 questions, 1. Have you used other 3rd part control in your project when you found this, 2. What’s the detail MapSuite version you are using.
Regards,
Don
Hi Don,
I don’t think I can upload a sample and I understand that it could be difficult for you to reproduce the issue.
I’ve developed a WPF map control as a wrapper of ThinkGeo Wpf Map Control in a VS 2010 C# DLL. This control is used in a C++ application form which communicates with my map control.
I thought this as a known “MapMouseWheel stops working” issue When I found the thinkgeo.com/forums/MapSuite/tabid/143/aft/13085/Default.aspx post and you have a solution.
We use the Map Suite Wpf Desktop Production 9.0.0.129 build.
Thank you for your help,
Gene
Hi Gene,
It looks the link you are referencing is currently topic.
I am not sure whether it’s because our control lost focus in your c++ control. But I think if the MouseMove event can be fired correct, you can add code in the MouseMove event to force our map control get focus. That should be a workaround.
Regards,
Don