Select to view content in your preferred language

JavaScript API 1.5 vs 2.6 - start extent issues

781
5
02-13-2012 07:39 AM
PatrickThorsell
Emerging Contributor
I have an older website that runs API 1.5: http://maps.co.scott.mn.us/IncidentViewer2/

I have a new website that runs API 2.6: http://maps.co.scott.mn.us/IncidentViewer/

EXACT same code other than the API references. The 1.5 site zooms to the correct start extent. The 2.6 site does not. BUT, when I hit the Zoom to Full Extent button on the 2.6 site, it zooms to the correct extent.
Any Ideas???
0 Kudos
5 Replies
JeffPace
MVP Alum
I have an older website that runs API 1.5: http://maps.co.scott.mn.us/IncidentViewer2/

I have a new website that runs API 2.6: http://maps.co.scott.mn.us/IncidentViewer/

EXACT same code other than the API references. The 1.5 site zooms to the correct start extent. The 2.6 site does not. BUT, when I hit the Zoom to Full Extent button on the 2.6 site, it zooms to the correct extent.
Any Ideas???


I loaded both in Chrome , and they start at the same extent.
0 Kudos
PatrickThorsell
Emerging Contributor
OK, I rolled my 2.6 website back to 2.4, now the extent is correct, as it was with my 1.5 website. Thanks!
0 Kudos
derekswingley1
Deactivated User
0 Kudos
PatrickThorsell
Emerging Contributor
when I use any API over 2.4, the initial extent shifts to the west so my basemap is halfway off the screen? Go back to anything 2.4 or under, initial extent is perfectly centered.
0 Kudos
derekswingley1
Deactivated User
A simple repro case would be ideal. Any chance you can throw one together?
0 Kudos