pkdash

Problem in displaying WorldHydroReferenceOverlay

Discussion created by pkdash on Dec 3, 2012
Latest reply on Jan 2, 2014 by wiseguy
I am trying to add the WorldHydroReferenceOverlay layer to my basemap and seems it is not getting added as I don't see this layer on my map when viewing the map. Here is my sample code:

var myMap = new esri.Map("mapDiv");

        var baseMap = new esri.layers.ArcGISTiledMapServiceLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
        myMap.addLayer(baseMap);

var referenceLayer = new esri.layers.ArcGISTiledMapServiceLayer("https://184.72.212.114:6080/arcgis/rest/services/WorldHydroReferenceOverlay/MapServer"); 
       
        myMap.addLayer(referenceLayer);

dojo.addOnLoad(init);

I see the world topo map when viewing the webpage, but not the
hydro map layer.

Any help would be appreciated.
PK

Outcomes