Skip to content

Using GoogleMaps Tile instead of default folium map tiles #2079

Closed
@SumeetSandhu

Description

@SumeetSandhu

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

googlePlex = ( 37.423199 , -122.084068 )
z,x,y = 10, 164, 397

map1 = folium.Map(tiles='https://mt1.google.com/vt/lyrs=r&x='+str(x)+'&y='+str(y)+'&z='+str(z), attr='GoogleMap')
map1

map2 = folium.Map(tiles='https://tile.googleapis.com/v1/2dtiles/'+str(z)+'/'+str(x)+'/'+str(y)+'?session='+GMAPS_SESSION_KEY+'&key='+GMAPS_API_KEY,attr='GoogleMap')
map2

Expected behavior
Map1 shouldn't work at all without credentials but it does open something weird - a grid of copies of the desired tile's thumbnail. Probably a google authentication error? The tiles are of the newer upcoming style.

Map2 gives the same error - a grid of copies of the desired tile's thumbnail. The tiles are of the current, older style.
This is likely a folium error?

Environment (please complete the following information):

Additional context
Add any other context about the problem here.

Possible solutions
List any solutions you may have come up with.

folium is maintained by volunteers. Can you help making a fix for this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation about a certain topic should be added

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions