Select to view content in your preferred language

IE 10 navigation toolbar issue

2407
15
Jump to solution
12-02-2013 07:02 AM
JennyHe
New Contributor
The zoom box (black background with red outline) doesn't show in IE 10 for the zoom-in and zoom-out tools in this following link:
http://developers.arcgis.com/en/javascript/samples/toolbar_navigation/. It works fine for Chrome and Firefox.

Could anybody please look into this issue? Thanks!
0 Kudos
15 Replies
JonathanUihlein
Esri Regular Contributor

Indeed! Great find Corey.

This is a major change that will affect many users who decide to update to 3.11.

The updated SDK (and What's New? page) will highlight all major changes to the API.
It's coming soon!

0 Kudos
CoreyAlix
Occasional Contributor

I also notice it's using dojo 1.10 which (it seems) doesn't properly resolve dojoConfig.deps (I use dojoConfig.deps=["xstyle/css!path/to/css"]).  1.9.x would resolve to js/dojo/xstyle but now it resolve to an invalid url (http://xstyle I believe). 

I'm okay with troubleshooting that to get to 3.11 but I'm not okay with having to make these changes just to get my zoom box back which was broken in 3.8!

0 Kudos
CoreyAlix
Occasional Contributor

require.toUrl("dojo") resolve to a URL containing [HOSTNAME_AND_PATH_TO_JSAPI].  This is because http://js.arcgis.com/3.11/dojo/dojo.js contains this reference whereas http://js.arcgis.com/3.10/js/dojo/dojo/dojo.js  contains "js.arcgis.com/3.10/js/dojo/dojo".  I'm surprised anything is working.  Do I have to set the baseUrl myself?

0 Kudos
JonathanUihlein
Esri Regular Contributor

I checked on this and apparently it was a build issue.
However, you shouldn't actually be using that particular file reference.

The recommended path is: http://js.arcgis.com/3.11/

The only exception would be if you are using a different loader (like require.js)

If using a different loader, yes you will have to set the baseURL yourself using dojoConfig object before loading dojo.js

0 Kudos
CoreyAlix
Occasional Contributor

Confirmed: Setting dojoConfig.baseUrl="//js.arcgis.com/3.11/dojo" before loading dojo.js did the trick.

FYI - I’m using the dojo loader but since init.js is 292k bytes and dojo.js is 45k I prefer to load only what I need and rely on browser caching for performance. I don't want to load the entire map API up front. I also want to be in control of which dojo, dijit, dgrid, xstyle and esri libraries load to facilitate debugging.

JonathanUihlein
Esri Regular Contributor

Totally valid. Glad its all working! Thanks again for the heads up about this issue.

0 Kudos