AnsweredAssumed Answered

New to scripting - Need help with a basic script with functions

Question asked by sroussie on Feb 26, 2014
Latest reply on Feb 26, 2014 by kenbuja

I am in the process of putting together a basic map by learning off the tutorials and examples found on the JavaScript examples site and I am trying to use a home button, legend, and scale on the same map.  I had the home button and scale working but when I added the script for the legend it stopped working.  I was wondering if there was a limit on how many functions could be called the way I have it set up or if I am missing something else. I am sure there is a different way to do this but since I have never written anything in JavaScript before I thought this was the best way to learn. I have enclosed the text file of my code.