Open wmbeers opened 3 years ago
Describes how to add labels: https://developers.arcgis.com/javascript/3/jssamples/layers_label.html
Note that label properties are included in the feature layer's service definition: https://pisces.at.geoplan.ufl.edu/arcgis/rest/services/etdm_services/Water_Quality/MapServer/18/?f=pjson
At first glance I would expect that to just be respected when the layer at that endpoint is added. Not sure if this is a JSAPI bug, something left out of CMV, or something I need to add to layer loader processes.
Description:
Reported by at least one user to Lex: Labels are defined in several of our map services, and work as expected, but if a labelled feature layer is added directly, the labels do not appear.
Seems similar to https://github.com/cmv/cmv-app/issues/41, where the answer was just "load the map service". Our user was happy with this work-around, but as we move forward with Thematic Maps this is something we'll ultimately have to address.
Steps to reproduce:
Expected results:
Labels appear on the map.
Actual results:
Labels do not appear. Compare to loading the entire Water Quality map service.