the demo runs on our server just fine. When we attempt to re-configure it to use a locally-created map, though, it blows up in the ArcGIS JSAPI code, with "TypeError: json is undefined".
v2.4 shipped with uncompressed version of dojo.xd.js.uncompressed.js so you could try serving that, then if the cause is in there it will at least be readable. If it's in the ESRI stuff then you could pretty-print the JS on download and attach breakpoints (manually, if it's not automatically breaking)
Can you strip the example right back so it's just a simple map with a single basemap, and see if that works? Then progressively add features until it breaks.Are you able to share your site's URL?
This is not true, 3.0 is the only version of the API where uncompress files were (mistakenly) included with the API download.
Either way the dojo file is uncompressed and might help this chap find his issue.
My opinion is that the best approach to getting to the bottom of this error is to post a simple page that can reproduce the error. That way we'll quickly be able to find out if the error being described is in his code or in the JS API. It's more trouble than it's worth to configure your local environment to use uncompressed Dojo files, IMO.
I agree that is one approach, depends how easy/quick it is for the OP to snap off just the bit that's causing issues, always worth having other approaches. To return that one dojo uncompressed file (for many people) means changing one line in the handler that returns it, IMO that's not a hardship.Not everyone is aware of all the options.
The reason I recommended an alternative approach is that in ~4 years of developing with the API, I cannot recall a single instance of solving a problem by using uncompressed vs. compressed Dojo source files. Is that how you're set up locally? To me, suggesting this approach seems like a rabbit hole that could easily be avoided by following the normal web dev approach of eliminating complexity to create a simple repro case, sharing that with the community and asking for help.
I think this conversation is muddying this thread
We are attempting to implement a website based on the Kurogo framework, an open source webapp framework that includes a mapping module which interfaces with ArcGIS map services. Very cool. They provide a demo which uses a nice map of Boston
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.