AnsweredAssumed Answered

Reference JS page from JS

Question asked by jay.kapalczynski on Mar 23, 2017
Latest reply on Mar 23, 2017 by jay.kapalczynski

I have an index.html page and a main.js page.

I am referencing the js page in html as such:  <script src="js/main.js"></script>


my main.js page is getting very long and want to do some house cleaning.  Can I create another .js page for instance and move all my Feature Layers in below


Would I reference this in the HTML page or the Main.js page?

var Conservation = new FeatureLayer("", {
mode: FeatureLayer.MODE_SNAPSHOT,
visible: false
legendLayers.push({ layer: Conservation, title: 'Conservation Lands' });