Don't know what I'm doing wrong; trying to load layers from ArcGIS Server into web using 'ArcGISDynamicMapServiceLayer', can see the basemap but not the layer.
see code below:
<html>
<head>
<
<title>FeatureLayer</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css">
<script src="https://js.arcgis.com/3.19/"></script>
<script>
require([
"esri/map",
"esri/layers/FeatureLayer",
"dojo/domReady!"
],
function(
Map,
FeatureLayer
)
{
// Add data from ArcGIS Server
var featureLayer = new esri.layers.ArcGISDynamicMapServiceLayer("https://herse.chelmsford.chelmsfordbc:6443/arcgis/rest/services//Boundaries/MapServer/2");
map.add(featureLayer);
});
</script>