AnsweredAssumed Answered

How do you organize your code for simple apps/maps?

Question asked by ibroad on Aug 29, 2018
Latest reply on Aug 29, 2018 by rscheitlin

I'm curious how people organize their code for simple single file JS apps/maps?


For example, do you group all QueryTasks together?


Do you have a top down organization?


Typically, I have any global variables at the top, then define map / view, popup actions, popup templates, define layers and add to map, define any query tasks, then I basically start with functions, and I put any widgets / popup template functions at the bottom.


Anyway, I'm looking for any guidance on how to better organize everything.