Skip to content
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

noLegend Bug? #161

Closed
kcarrier opened this issue Aug 15, 2014 · 2 comments
Closed

noLegend Bug? #161

kcarrier opened this issue Aug 15, 2014 · 2 comments

Comments

@kcarrier
Copy link

I have been adding in my operational layers but when setting noLegend the application does not appear to honor the setting for dynamic layers.

In this case Monuments should show in Legend but Parcel Labels should not, if I am understanding this correctly. Is this a known issue or am I doing something incorrectly?

                operationalLayers: [{
                    type: "dynamic",
                    url: "http://maps9.clermontauditor.org/arcgis/rest/services/WMAS/Monuments/MapServer",
                    title: "Monuments",
                    noLegend: !1,
                    collapsed: !0,
                    options: {
                        id: "monuments",
                        opacity: 1,
                        visible: !1
                    }
                }, {
                    type: "dynamic",
                    url: "http://maps8.clermontauditor.org/arcgis/rest/services/Parcels/ParcelLabelsWMAS/MapServer",
                    title: "Parcel Labels",
                    noLegend: !0,
                    collapsed: !0,
                    options: {
                        id: "parcellabels",
                        opacity: 1,
                        visible: !0
                    }
                }, 
@tmcgee
Copy link
Member

tmcgee commented Aug 15, 2014

noLegend applies to the TOC widget and it does work in that widget. There was a bug that prevented that from working. That issue was addressed earlier in the summer.

I think though you are wanting the Legend for parcels to be suppressed in the Legend widget. There may be some way to do that in the configuration but I never explored that. What I did was hide the legend swatch for the specific layer using css. Something like this:

#legend_widget_parcellabels {
    display: none !important;
}

@kcarrier
Copy link
Author

That did the trick thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants