14 lines
420 B
Python
14 lines
420 B
Python
import folium
|
|
|
|
# Substitua pelos limites geográficos reais da sua imagem
|
|
oeste, sul, leste, norte = -5250000, -2700000, -5170000, -2650000
|
|
|
|
m = folium.Map(location=[(norte + sul) / 2, (leste + oeste) / 2], zoom_start=10)
|
|
|
|
folium.raster_layers.ImageOverlay(
|
|
image='mapa_tiles.png',
|
|
bounds=[[sul, oeste], [norte, leste]],
|
|
opacity=0.9, # Ajuste conforme necessário
|
|
).add_to(m)
|
|
|
|
m.save('mapa_interativo.html') |