AnsweredAssumed Answered

Problem adding an image service to a web scene

Question asked by dschatt on Dec 21, 2016
Latest reply on Jan 5, 2017 by dschatt

hi all, I'm using Javascript 4.1 for the first time and just trying create a very basic web scene with my own image service overlain on the default world elevation layer. The world elevation layer shows up fine but my own image service (added as an ImageryLayer) isn't visible. I get an error "ERR_CONNECTION_RESET" for the ImageryLayer url line of code. Apparently for some reason it can't access the service.  But it was accessible and visible from the Javascript viewer on the REST page.  Wondering if it might be a problem with my coding (below). Thanks!



    ], function(Map, SceneView, ImageryLayer, on, dom) {
      // Create inundation layer and add to the map
      var floodLayer = new ImageryLayer({
        url: "",

      // Create the Map
      var map = new Map({
        basemap: "topo",
        ground: "world-elevation",
        layers: [floodLayer]

      // Create the MapView
      var view = new SceneView({
        container: "viewDiv",
        map: map,
        camera: {
          position: [-76.407, 37.149, 1346],
          heading: 300,
          tilt: 60