-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legend does not update if layer changed in Dynamic map service #340
Comments
@TPLsmitty This may be related to issue #294 - possibly at the JavaScript API level. The legend widget is an "out-of-the-box" widget from ESRI, not one developed by the CMV team. I'm not aware of any plans to create a CMV-specific legend widget though much of the effort may already have been done by @btfou in the layerControl widget - at least for the layers currently supported by the layerControl widget. |
@tmcgee @btfou First off, Thank you for all your help and effort in keeping CMV up to date. I appreciate all of your help with this. |
@TPLsmitty I'm not sure the layerControl widget would be a good candidate for this change. We cannot assume that one widget (layerControl) will be included in an application to send changes to the second widget (legend). Assuming the legend widget is the problem (I haven't done any research), here are few quick thoughts on possible approach:
There may be other approaches. These are just what come to mind. Capturing them here for future reference. |
Hello, Know about someone that advanced in this question? Thanks |
Possible solution proposed in #659 |
new core CMV Legend widget added in #660 |
This may be the same as issue #294.
So it looks like if a dynamic map service is in CMV, if you change a layer associated with the Dynamic map service, the legend widget does not update until the user zooms in or out of the map. If the layer is a feature layer it updates immediately.
This is replicable with the demo viewer.
Turn off meet up, San Fran or damage assessment layers and legend is updated,
Open Louisville map service and turn off layer, legend does not update until you zoom in or out.
The text was updated successfully, but these errors were encountered: