David.Kucharski@23

Labels on Feature Layer not Showing

Discussion created by David.Kucharski@23 on Jul 17, 2018

I have a MapImageLayer that I am using for my Basemap

 

 

var baseMapLayer = new MapImageLayer({ url: "https://esridev.nsamedia.com/arcgis/rest/services/BaseMap/MapServer" });

//Basemap

var basemapDave = new Basemap({ baseLayers: [baseMapLayer], title: "Custom Basemap", id: "myBasemap" });

 

 

var map = new Map({ basemap: basemapDave, layers: [cOverlayLyr] });

var view = new MapView({

container: "viewDiv", 

map: map, 

zoom: 20, 

center: [-122.1842, 44.6359]  });

 

I then add a feature layer that I declared. 

 

var waterwaysLayer = new FeatureLayer({
url: "https://esridev.nsamedia.com/arcgis/rest/services/MajorWaterways/MapServer"
});

map.layers.add(waterwaysLayer);

 

When my map displays, I have my BaseMap and the layer visible. The layer is the major waterways of the US. So I see the rivers, lakes, oceans, but my labels are not showing and I do not understand why. If run a test case where the Waterways layer is my basemap, I see the labels.

Outcomes