How to migrate from agslib 2.1 to agslib 3.1

488
1
Jump to solution
12-17-2012 07:24 AM
FarhadNavaei
New Contributor III
Hi there,

I have an application which is developed using agslib 2.1. I want to migrate t to agslib3.1. When I use the new library, There is an error in MapManager.mxml code as "Call to a possibly undefined method zoomToFullExtent through a reference with static type com.esri.ags.tools:NavigationTool."
I could not find any updated MapManager.mxml in FlexViewer version 3.1. So I was thinking that maybe I must follow a process for migrating from 2.1 to 3.1. does anybody know how I can migrate my code to use the new library, or any workaround for resolving the issue?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
HeatherGonzago
Esri Contributor
Hi there,

I have an application which is developed using agslib 2.1. I want to migrate t to agslib3.1. When I use the new library, There is an error in MapManager.mxml code as "Call to a possibly undefined method zoomToFullExtent through a reference with static type com.esri.ags.tools:NavigationTool."
I could not find any updated MapManager.mxml in FlexViewer version 3.1. So I was thinking that maybe I must follow a process for migrating from 2.1 to 3.1. does anybody know how I can migrate my code to use the new library, or any workaround for resolving the issue?


First off, I would make certain that you have the minimum system requirements: http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000000m000000.
Have you taken a look at the What's new archived doc - Migrating from 2.5 to 3.0, http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Migrating_from_2_5_to_3_0/017p0000....

It mentions, "The zoomToFullExtent() method on NavigationTool was deprecated at 2.3 and has been removed at 3.0. Use Map.zoomToInitialExtent() instead."

HTH

View solution in original post

0 Kudos
1 Reply
HeatherGonzago
Esri Contributor
Hi there,

I have an application which is developed using agslib 2.1. I want to migrate t to agslib3.1. When I use the new library, There is an error in MapManager.mxml code as "Call to a possibly undefined method zoomToFullExtent through a reference with static type com.esri.ags.tools:NavigationTool."
I could not find any updated MapManager.mxml in FlexViewer version 3.1. So I was thinking that maybe I must follow a process for migrating from 2.1 to 3.1. does anybody know how I can migrate my code to use the new library, or any workaround for resolving the issue?


First off, I would make certain that you have the minimum system requirements: http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000000m000000.
Have you taken a look at the What's new archived doc - Migrating from 2.5 to 3.0, http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Migrating_from_2_5_to_3_0/017p0000....

It mentions, "The zoomToFullExtent() method on NavigationTool was deprecated at 2.3 and has been removed at 3.0. Use Map.zoomToInitialExtent() instead."

HTH
0 Kudos