Migrate to 2.X

626
4
02-14-2013 03:35 AM
HansBäumler
New Contributor
Hi,
I'm new to Arcgis, but it's neccessary for me to up Grade my Javascript API from 1.4 to 2.X, I was told i have to change this:
function showRoute(routeResults, barriers, gpMessages) {
map.graphics.add(routeResults[0].route.setSymbol(routeSymbol));
map.graphics.add(routeResults[0].stops[0].setSymbol(StartRoutingSymbol));
map.graphics.add(routeResults[0].stops[1].setSymbol(stopSymbol));
}
But how exact do have to change it. Sorry if the Question is to stupid... Please help,

Chers Hans
0 Kudos
4 Replies
JeffPace
MVP Alum
we will need to see ALOT more of the code
0 Kudos
StephenLead
Regular Contributor III
Hans,

If you're going to update your code you might as well go straight to the latest version (3.3), otherwise you'll end up rewriting it twice.

See the Migrating to 3.x document for some pointers.

Steve
0 Kudos
HansBäumler
New Contributor
@Hi Stevel,

Thanks for your quote, but I'm sorry it's not possible for us to go straight to 3.X because it's a local based applikation and we are using an older server,

Chers
0 Kudos
HansBäumler
New Contributor
@Jeff.pace,

thanks for the interest, but are you sure about that, because I thought, the mistake must be somewhere in this function, because we do not buffer or something, and according to http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#migration_20 this function must be changed.

Chers
0 Kudos