This project is read-only.

ZoomNext and ZoomPrevious

May 22, 2011 at 9:06 PM
Edited May 24, 2011 at 11:07 AM

Hi !

Jiri help a lot on layers and groups and "save/load" map functions and now I found that after loading map dspx file two functions ZoomNext and ZoomPrevious works no more. It will not fire the "MapFrame_ExtentsChanged" on DemoRibbon main form. I can not figure out what is going on!

Thanks for any help, Vojko

 

May 24, 2011 at 5:05 PM

I'm trying to verify this issue and I'll let you know about the results.

Jiri

May 24, 2011 at 7:25 PM

Hi Vzavec,

I verified that the MapFrame_ExtentsChanged event doesn't fire after opening an existing .dspx project. I've written the unit test that verifies this bug.

http://dotspatial.codeplex.com/workitem/304

As a temporary solution, I changed the event handler in DemoRibbon main form from MapFrame.ViewExtentsChanged to Map.ViewExtents changed. This way the zoom next and zoom previous are working in DemoRibbon.