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

Avoid a 301 redirect for Stamen watercolors #299

Merged
merged 3 commits into from
Oct 6, 2018

Conversation

JLuc
Copy link
Contributor

@JLuc JLuc commented Oct 5, 2018

Stamen only provides jpg watercolors tiles and redirects permanently png toward the jpg .
Avoid that 301 redirection and just use jpg urls

Avoid a redirection from png to jpg for each loaded tile
@JLuc JLuc changed the title Avoid a useless redirection from png to jpg for Stamen watercolors Avoid a 301 redirect for Stamen watercolors Oct 5, 2018
Travis warns "AssertionError: expected 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.jpg' to include '{ext}'" so let's keep the {ext} in the url as if it could change and set it to 'jpg' as an option
@jieter jieter merged commit 8d43952 into leaflet-extras:master Oct 6, 2018
@jieter
Copy link
Contributor

jieter commented Oct 6, 2018

Thanks!

@JLuc
Copy link
Contributor Author

JLuc commented Oct 8, 2018

thanks too

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.

2 participants