use ArcGIS Dynamic Service in beta

3097
5
Jump to solution
08-03-2015 01:49 AM
selvarajkrishnan1
New Contributor

I want to use ArcGIS REST Service as a ArcGISDynamicService in 4.0 beta. Any one tried this in 4.0 beta version.?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DavideLimosani
Occasional Contributor II

It works, also if ArcGISDynamicLayer class is not documented yet.

Try this:

require([

  "esri/Map",

  "esri/views/SceneView",

  "esri/layers/ArcGISDynamicLayer",

  "dojo/domReady!"

], function (Map, SceneView, ArcGISDynamicLayer) {

  //Create map

  map = new Map({

    basemap: "hybrid"

  });

  //Create SceneView

  view = new SceneView({

    map: map,

    container: "viewDiv",

    camera: {

      position: [7.654, 45.919, 5183],

      tilt: 80

    }

  });

  map.add(new ArcGISDynamicLayer("http://.../MapServer") );

});

I was not able to use indetify instead, it seems that the IdentifyParameters class is not already supported.

Davide

View solution in original post

5 Replies
DavideLimosani
Occasional Contributor II

It works, also if ArcGISDynamicLayer class is not documented yet.

Try this:

require([

  "esri/Map",

  "esri/views/SceneView",

  "esri/layers/ArcGISDynamicLayer",

  "dojo/domReady!"

], function (Map, SceneView, ArcGISDynamicLayer) {

  //Create map

  map = new Map({

    basemap: "hybrid"

  });

  //Create SceneView

  view = new SceneView({

    map: map,

    container: "viewDiv",

    camera: {

      position: [7.654, 45.919, 5183],

      tilt: 80

    }

  });

  map.add(new ArcGISDynamicLayer("http://.../MapServer") );

});

I was not able to use indetify instead, it seems that the IdentifyParameters class is not already supported.

Davide

selvarajkrishnan1
New Contributor

Thank you David, It is working fine, Also I want to know whether we can use digit.toolbar in this version?

0 Kudos
DavideLimosani
Occasional Contributor II

You are welcome.

digit.toolbar is dojo, not esri api, so i think you should not have problems using it.

Davide

RolandMartin
New Contributor III

It looks as though this only currently works in 3D mode, not 2D - is that correct?

Thanks!

0 Kudos
selvarajkrishnan1
New Contributor

Yes Roland Martin, I tried many ways in 2D. It is not working. Hope this will work in only 3D..

0 Kudos