Jvascript version 3.3 not working

1237
4
Jump to solution
02-19-2013 05:49 AM
BenStewart
New Contributor III
I had an issue with a previous map's symbology (http://forums.arcgis.com/threads/77714-Symbology-not-correct-from-ArcGIS-Online-Map) and I solved it by changing the javascript version to 3.3 (from 3.1). While that worked on Friday, it is broken now.

If you visit my testing page (below), the map tiles are arranged diagonally all across the page. I can't understand what happened between today and Friday. I have created a demo using the 3.1 API version (below) that shows working map tiles (but broken symbology). Please help!

Original AGO map: http://bit.ly/WN0ZmP
3.3 Version: http://geographyis.com/testing/gafsp/GAFSP/countryPage.html
3.1 Version: http://geographyis.com/testing/gafsp/GAFSP/countryPage31.html
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
You need a reference to the esri.css file added to your app:

   <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css">

We added it in version 3.2 - here's info from the What's New at 3.2 doc:
http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#new_v32


I had an issue with a previous map's symbology (http://forums.arcgis.com/threads/77714-Symbology-not-correct-from-ArcGIS-Online-Map) and I solved it by changing the javascript version to 3.3 (from 3.1). While that worked on Friday, it is broken now.

If you visit my testing page (below), the map tiles are arranged diagonally all across the page. I can't understand what happened between today and Friday. I have created a demo using the 3.1 API version (below) that shows working map tiles (but broken symbology). Please help!

Original AGO map: http://bit.ly/WN0ZmP
3.3 Version: http://geographyis.com/testing/gafsp/GAFSP/countryPage.html
3.1 Version: http://geographyis.com/testing/gafsp/GAFSP/countryPage31.html

View solution in original post

0 Kudos
4 Replies
KellyHutchins
Esri Frequent Contributor
You need a reference to the esri.css file added to your app:

   <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css">

We added it in version 3.2 - here's info from the What's New at 3.2 doc:
http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#new_v32


I had an issue with a previous map's symbology (http://forums.arcgis.com/threads/77714-Symbology-not-correct-from-ArcGIS-Online-Map) and I solved it by changing the javascript version to 3.3 (from 3.1). While that worked on Friday, it is broken now.

If you visit my testing page (below), the map tiles are arranged diagonally all across the page. I can't understand what happened between today and Friday. I have created a demo using the 3.1 API version (below) that shows working map tiles (but broken symbology). Please help!

Original AGO map: http://bit.ly/WN0ZmP
3.3 Version: http://geographyis.com/testing/gafsp/GAFSP/countryPage.html
3.1 Version: http://geographyis.com/testing/gafsp/GAFSP/countryPage31.html
0 Kudos
BenStewart
New Contributor III
Thanks, that took care of it, although I don't know why it was working on Friday and not today. Did something change in the .css recently? We have a reference to a local copy of esri.css (not in the demo pages I linked), but it doesn't appear to be working.

Regardless, thanks again for your help and quick responses!
0 Kudos
KellyHutchins
Esri Frequent Contributor
Nothing has changed in the css - we only do updates when there is a release.

Thanks, that took care of it, although I don't know why it was working on Friday and not today. Did something change in the .css recently? We have a reference to a local copy of esri.css (not in the demo pages I linked), but it doesn't appear to be working.

Regardless, thanks again for your help and quick responses!
0 Kudos
KellyHutchins
Esri Frequent Contributor
Try clearing your browser cache and see if that resolves the issue.
0 Kudos