Skip to content

Add subdomains option for TileLayer #623

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

Merged
merged 1 commit into from
Jun 8, 2017
Merged

Add subdomains option for TileLayer #623

merged 1 commit into from
Jun 8, 2017

Conversation

damselem
Copy link
Contributor

Some tile services use a different set of subdomains. For reference: http://leafletjs.com/reference-1.0.3.html#tilelayer-subdomains

@ocefpaf
Copy link
Member

ocefpaf commented May 25, 2017

I am 👍 to that change. Can you update the test template to reflect the extra line:
subdomains: {{this.subdomains}} and add a test case for something that is different from the default argument?

We need a changelog entry for that.

Bonus if you add a notebook to our gallery with a few use cases 😄


url_with_name = 'http://{s}.custom_tiles-subdomains.org/{z}/{x}/{y}.png'
tile_layer = folium.map.TileLayer(url, name='subdomains2',
attr='attribution',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E127 continuation line over-indented for visual indent

url_with_name = 'http://{s}.custom_tiles-subdomains.org/{z}/{x}/{y}.png'
tile_layer = folium.map.TileLayer(url, name='subdomains2',
attr='attribution',
subdomains='5678')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E127 continuation line over-indented for visual indent

@damselem
Copy link
Contributor Author

Do you agree this should bump the minor version?

@ocefpaf
Copy link
Member

ocefpaf commented May 29, 2017

Do you agree this should bump the minor version?

Makes sense. Don't forget to add a changelog entry.

Some tile services use a diferent set of subdomains.
@damselem
Copy link
Contributor Author

damselem commented Jun 8, 2017

Is there anything else that needs to be done in order to get this merged?

@ocefpaf
Copy link
Member

ocefpaf commented Jun 8, 2017

Is there anything else that needs to be done in order to get this merged?

Nope. I've just been awfully busy with the day job.

Thanks for the PR!

@ocefpaf ocefpaf merged commit 89c76a0 into python-visualization:master Jun 8, 2017
@damselem damselem deleted the subdomains branch June 11, 2017 07:31
sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
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

Successfully merging this pull request may close these issues.

3 participants