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

Switch base map #35

Closed
Robinlovelace opened this issue Apr 30, 2015 · 6 comments
Closed

Switch base map #35

Robinlovelace opened this issue Apr 30, 2015 · 6 comments

Comments

@Robinlovelace
Copy link
Member

We can set the basemap to anything listed here and probably more:
http://leaflet-extras.github.io/leaflet-providers/preview/index.html

Specifically, I think the OpenCycleMap image could be of use in some cases. This can be added by: 'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png' .

Is there a way to allow the user to switch the base map 'live', like this?

@usr110
Copy link
Member

usr110 commented Apr 30, 2015

@Robinlovelace This is really interesting. Thanks for sharing. I am looking into it.

@usr110
Copy link
Member

usr110 commented Apr 30, 2015

@Robinlovelace I've just added an option to change the base of the map. Please have a look at it - 19d4c88
So far it is only for testing purposes. I will add more options now.

@Robinlovelace
Copy link
Member Author

@usr110 done. may be good to make this more subtle - a floating tick-box?

@usr110
Copy link
Member

usr110 commented Apr 30, 2015

@Robinlovelace I was thinking about it. Depends on how many options are we going to give users? A radio button is more useful, I believe. What say?

@usr110
Copy link
Member

usr110 commented Apr 30, 2015

@Robinlovelace Like this - 8b8a43c

@usr110 usr110 closed this as completed Apr 30, 2015
@Robinlovelace
Copy link
Member Author

I say radio buttons is a good solution, as long as it does not make the right hand bar too long.

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