AnsweredAssumed Answered

Bookmarks and calling code from different modules

Question asked by ho0mwp on Mar 11, 2014
Latest reply on Mar 20, 2014 by kenbuja
I have been doing some developement in Silverlight and Flex for awhile now.  However, Javascript and HTML5 really seem the way to go now that my company has invested in a bunch of iPads.  So I am trying to learn as I go.  I have a couple of questions.

1.) I would rather not have all of my code in one place.  I will have a lot of bookmarks.  How can I call these from another file?
2.) Can I just set the spatialreference once for my bookmarks instead of every single time?

        // --->Bookmarks
        var bookmarks_list = [{
          "extent": {"spatialReference": {"wkid": 102100},"xmin":-13587617,"ymin":4564540,"xmax":-13587178,"ymax":4564976},
          "name": "BroadWay Plaza!"},
   
    {"extent": {"spatialReference": {"wkid":102100},"xmin":-13837359,"ymin":4507794,"xmax":-13501037,"ymax":4866253},
          "name": "Bay Area North District"
        }];
  //------>End of bookmarks

Outcomes