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

Describing a way for people to turn on Layers . #3626

Closed
sagarpreet-chadha opened this issue Oct 5, 2018 · 2 comments
Closed

Describing a way for people to turn on Layers . #3626

sagarpreet-chadha opened this issue Oct 5, 2018 · 2 comments
Labels
enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute JavaScript

Comments

@sagarpreet-chadha
Copy link
Contributor

sagarpreet-chadha commented Oct 5, 2018

We are using maps all over the side and recently we have integrated Leaflet-Environmental-library in all the maps .
We need to add a descriptive text on the map so that people can know how to turn on layers .

@ebarry mentioned great ideas for solving this issue :

Proposal: when the in-line map tag is used, it would not only add the map on the page as shown, but also above it, include a line of text saying, "to turn on environmental layers, click the icon in the top right!"

Maybe we could try a version which also said, "To learn about this project and give feedback, visit [link-to-this-post]"

Solution : [Open to better solutions as well]

We can use the attribution attribute :

 L.tileLayer('http://tiles.mapc.org/basemap/{z}/{x}/{y}.png',
    {
      attribution: 'to turn on environmental layers, click the icon in the top right!',
      maxZoom: 17,
      minZoom: 9
    }).addTo(map);

Thanks !

@grvsachdeva
Copy link
Member

Hi @sagarpreet-chadha, can you add the link to the files and maybe open a new issue using all these details? Thanks!

@grvsachdeva grvsachdeva added enhancement explains that the issue is to improve upon one of our existing features JavaScript help wanted requires help by anyone willing to contribute labels Feb 17, 2019
@jywarren
Copy link
Member

Let's merge back into this:

publiclab/leaflet-environmental-layers#60 (comment)

and ref this too: publiclab/leaflet-environmental-layers#123

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute JavaScript
Projects
None yet
Development

No branches or pull requests

4 participants