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

map not visible #865

Closed
maessery opened this issue Sep 2, 2021 · 9 comments
Closed

map not visible #865

maessery opened this issue Sep 2, 2021 · 9 comments

Comments

@maessery
Copy link

maessery commented Sep 2, 2021

hi, i was looking at your work on https://ipyleaflet.readthedocs.io/en/latest/api_reference/basemaps.html#
with basemaps, specifically, and noticed all your Strava maps were greyed out. There was a note box that suggested reaching out on here if that situation occured on the site.

As a side note, im interested to see what it produces! Is it a way of plotting streets and drivable routes?

@davidbrochart
Copy link
Member

Hi, we depend on xyzservices, and it seems the Strava server is currently down.

@justb4
Copy link
Contributor

justb4 commented Sep 9, 2021

From what I see the problem is just a typo double slash, '//tiles/' in the Strava URLs on basemaps.py#199 and further:

    Strava=Bunch(
        All=dict(
            url='https://heatmap-external-a.strava.com//tiles/all/hot/{z}/{x}/{y}.png?v=19',
            max_zoom=15,
            attribution='Map tiles by <a href="https://labs.strava.com/heatmap">Strava 2017</a>',
            name='Strava.All'
        ),
 .
.

So https://heatmap-external-a.strava.com/tiles/all/hot/10/163/393.png will render but
https://heatmap-external-a.strava.com//tiles/all/hot/10/163/393.png not.

@justb4
Copy link
Contributor

justb4 commented Sep 9, 2021

And geopandas/xyzservices#85 (the more xyzservices becomes relevant!).

@martinRenou
Copy link
Member

Thanks for reporting. So it might only be a matter of updating the docs. We maybe need to update the stable branch.

@martinRenou
Copy link
Member

Rebuilding now

@justb4
Copy link
Contributor

justb4 commented Sep 9, 2021

Not too familiar how xyzservices is used, thought it was WIP via PR #857.
To me it seems that only
https://github.com/jupyter-widgets/ipyleaflet/blob/master/ipyleaflet/basemaps.py#L199 needs updating...

@martinRenou
Copy link
Member

martinRenou commented Sep 9, 2021

Indeed. I thought the xyzservices PR was merged and released, but it is still open #857.

So yeah we need to finish this or fix the basemaps temporarily.

@justb4
Copy link
Contributor

justb4 commented Sep 12, 2021

I can make a PR to update https://github.com/jupyter-widgets/ipyleaflet/blob/master/ipyleaflet/basemaps.py#L199.

justb4 added a commit to geopython/geopython-workshop that referenced this issue Sep 12, 2021
justb4 added a commit to justb4/ipyleaflet that referenced this issue Sep 12, 2021
…URLs

Simply replace `'...com//tiles/...'` by `'...com//tiles/...'` in Strava URLs
martinRenou added a commit that referenced this issue Sep 13, 2021
Fix for #865 : remove double slashes from Strava tile-URLs
@martinRenou
Copy link
Member

thanks!

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

4 participants