0

A related question on using leaflet states that one can use the tilesize parameter to support 512x512 tiles: Street labels in Mapbox Tile Layer too small:

It looks like you have 512px sized tiles, but mapping the Earth as if they were 256px sized.

Therefore you need a combination of tileSize and zoomOffset options on your Tile Layer to compensate for these settings, and retrieve the correct view with readable sized text on the tiles

How can do this using the folium library for Python? Their official docs don't seem to contain any mentions of a tilesize parameter.

JonathanReez
  • 1,559
  • 3
  • 21
  • 37
  • 1
    I don't know if my comment meets your purpose, but it looks like you can specify parameters on the raster layer. `m = folium.Map(location=[42.888284, -78.877222], tiles=None);folium.raster_layers.TileLayer("OpenStreetMap", tileSize=512, zoomOffset=-1).add_to(m);folium.raster_layers.TileLayer("stamentoner", show=False).add_to(m);folium.LayerControl(collapsed=False).add_to(m);m` – r-beginners Jan 31 '23 at 01:35

0 Answers0