AnsweredAssumed Answered

Can I use ArcGIS Online with the Javascript API?

Question asked by Xhosa on Aug 15, 2014
Latest reply on Aug 15, 2014 by Xhosa



I am wondering if I can use ArcGIS Online similar to ArcServer? I am trying to upload tiles to arc online then use them with the API (see below):


      var map;
      require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer("my URL?")", "dojo/domReady!"],
        function(Map, Tiles) {
          map = new Map("map", {basemap: "streets",
          center: [-78.785706, -1.774008], // longitude, latitude
          zoom: 7});

          var tiles = new Tiles("");

I am not sure what the the ("my URL") would be using arcgis online... unless I can't in which case it would make more sense.

Any help and or suggestions are greatly appreciated!