A community-supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit - https://cmv.io/
better
since I don't use the FeatureTable at all and don't know your use case. Here is an example of of using FeatureTable with CMV.
@ERS-Long The legend for Feature layers in the layerControl widget isn't a typical legend. The symbols are built from the layer's render when the layerControl is first instantiated. I forget the reasoning behind this approach (I didn't write it).
The first workaround that comes to mind is remove the layer from the layer control and add it again. I'm not sure if this will work since the symbols are built from the layer's renderer and may ignore the layer defs (at least that is how it looks like it will behave based on a quick look at the code).
Second possibility is to rely on the Legend widget. You can add noLegend: true
to the layerControlOptions
for that layer so it doesn't show the Legend in the layerControl widget.
dist
folder is no longer in the path.
@milenaAE If I am understanding your objective correctly the yes, I believe that would be quite possible. I think you'd need to start with a custom Print template and/or Print service on the AGS server that would accept the desired text. It may be possible to capture the info also within your service - not sure about that. If not, then on the client side you 'd possibly use a custom widget that would gather the data you want to include on the watermark, perhaps a variant of the CMV Print widget. To be more secure, you may want to capture the info using a server-side language like ASP.NET, PHP, etc. Perhaps your secured portal
already handles some of that.
Another possibly approach would be to create a service proxy that sits in front of the Print Service that captures the info that you require and passes it along to the service.
Probably quite a few other possible approaches but bottom line is it is possible.