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

Add API for setting named tile sets #60

Closed
jeffbaumes opened this issue Apr 16, 2014 · 3 comments · Fixed by #1020
Closed

Add API for setting named tile sets #60

jeffbaumes opened this issue Apr 16, 2014 · 3 comments · Fixed by #1020
Assignees

Comments

@jeffbaumes
Copy link
Contributor

Like openstreetmaps, mapquest, etc.

@aashish24 aashish24 self-assigned this Apr 17, 2014
@aashish24
Copy link
Member

@jeffbaumes @manthey can we close this issue now?

@manthey
Copy link
Contributor

manthey commented Feb 7, 2018

Currently, you have to set the tile url as the whole string (e.g., http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png). I think this was proposing setting a dictionary of these values: tiles = {osm: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', 'stamen-toner-lite': 'http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png'} and then supporting setting the tile url as a single word: layer.url('osm').

This would make it convenient to specify a few tile sources quickly; we default to OSM, but if we wanted to have a short list of common tile servers, this would facilitate it.

@aashish24
Copy link
Member

I see I thought it was this http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png but perhaps @jeffbaumes can confirm and most likely you are correct.

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

Successfully merging a pull request may close this issue.

3 participants