AnsweredAssumed Answered

Javascript API & Flickr help

Question asked by canadiantodd on Jun 17, 2015
Latest reply on Jun 17, 2015 by canadiantodd

Morning all - I'm slowly losing my mind!  I've started a webpage so that I can play around with the Javascript API and Flickr.  I've copied and pasted the ESRI sample for this, found here Feature collection | ArcGIS API for JavaScript , and it runs great if I run it as is, on my own web server.

 

My issues come when I try to design a new page around it.  I haven't changed any of the code for the feature collection itself, just some of the map constructor, CSS and content, and added a location search widget.  When I try and run my new page (with Chrome debugger) the map loads fine, the search works great, but the Flickr features don't show up.  The debugger spits out an error when it gets to the RequestSucceded() function, telling me that "TypeError: array.forEach is not a function."  From my research, it appears I'm not giving a proper array to the function to play with - I just don't see how I'm passing anything different to the function than what the source code originally passes... anyone have any ideas on this?  Source code for both included (index.html is my page that doesn't work, index3.html is the ESRI sourcecode).

Attachments

Outcomes