TileMapBase
TileMapBase copied to clipboard
Plot graph on satelite image instead of osm basemap
Hi, I would like to use satellites map as base map instead as osm base map and plot graph on it. Is that possible with TileMapBase?
TileMapBase can only use standard "map tiles", as used by Open Street Map. I am not aware of any satellite images conforming to this standard (and freely available) but maybe other people know?
You just have to point to the correct tile server. Maybe someone more experienced can comment but this is how I did it:
satellite_tiles = "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}"
t = tilemapbase.tiles.Tiles(satellite_tiles, "satellite")
plotter = tilemapbase.Plotter(extent, t, width=300 ) plotter.plot(ax, t)