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

Toggling labels #642

Closed
Wernazuma opened this issue Dec 2, 2016 · 3 comments
Closed

Toggling labels #642

Wernazuma opened this issue Dec 2, 2016 · 3 comments

Comments

@Wernazuma
Copy link

Sorry to add yet another issue so short after the last, but it's one thing that haunts me for some time now. Is there a way to achieve a user-controlled labelling, toggling it on/off, that does not involve creating a Group Layer with one layer for the symbols and another without symbology and only label?

That's our workaround at the moment, but it triples the number of layers (counting the group lyer too), and it is not intuitive for many users.

Especially since information density is so different from region to region, it make very little sense for us to predefine labelling based on zoom factor in the first place.

@green3g
Copy link
Member

green3g commented Dec 2, 2016

@Wernazuma I've got an initial attempt at a labeling widget. It basically creates an empty layer with only labels that a user selects from a dropdown. Its still buggy so I haven't put it on the "contributed widgets" repo yet but you can give it a shot if you want https://github.com/roemhildtg/cmv-widgets/blob/master/widgets/LabelLayer.js

@Wernazuma
Copy link
Author

@roemhildtg We're giving it a try in a copy of our editor. Looks good for a long time, but ultimately doesn't label. We keep getting an error , maybe one of those still existing bugs you mention. Maybe analyzing the error in the app helps to see what's happening: https://www.hgis-indias.net/cmv-app-master/label/

Anyway, please keep me updated, this seems to be really useful for us, probably not for all layers, but for the "aggregated data" ones, where I can imagine people would want to use different values as labels and there's no need to label more than one of them.

@green3g
Copy link
Member

green3g commented Dec 5, 2016

Moved to green3g/cmv-widgets#28

@green3g green3g closed this as completed Dec 5, 2016
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