Select to view content in your preferred language

Error with Full extent on Sample Viewer 2

2227
3
10-28-2010 09:21 AM
JordanParfitt
Regular Contributor
When I use the old of the box configured flex viewer. After I click the full extent button any draw point causes the application to zoom out to the full extent again.

Process to reproduce error:
1. Open the default flex viewer (http://help.arcgis.com/en/webapps/flexviewer/live/index.html)
2. Click the full extent button
3. Manually zoom in a little
4. Draw a point (open draw tool)
5. Watch as you get zoomed out to the full extent

Has anyone noticed this or come up with a fix? Is it a code change or a problem with the API? I noticed it when trying to use an identify tool so it is with any draw point not just the draw tool

Thanks,
Jordan
Tags (2)
0 Kudos
3 Replies
JordanParfitt
Regular Contributor
I found the line of code that causes this error.

MapManager.mxml line 759:
changeNavigation(navigationTool, navigationStatus);

Commenting this out seems to remove the error but I am curious if it will break some other functionality at some point. Has anyone else had any experience with this?

I have been finding this new API/viewer to be very buggy.

-Jordan
0 Kudos
BjornSvensson
Esri Regular Contributor
This is a bug in Flex Viewer 2.1 and will be fixed in version 2.2.

Thanks for reporting it 🙂
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jordan,

   Replace that line with these:

if(navigationTool != "zoomfull" && navigationTool != "zoomprevious" && navigationTool != "zoomnext"){
                 changeNavigation(navigationTool, navigationStatus);
    }


This viewer is no more buggy than the SFV when it first came out.
0 Kudos