I am new to Django and I have installed mapTiler server on my mac to use it as as map server. I have a django app that has an embedded folium map and I want to host my data locally (offline) through the application:
After getting the information from the server [mapTiler server interface][1], I have put this part of code in views.py
tilesServer = "http://localhost:3650/api/tiles/2017-07-03_illinois_chicago/{z}/{x}/{y}.png"
m = folium.Map(location=[41.85, -87.68], zoom_start=10, tiles=tilesServer,attr="<a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>")
m.add_child(fullscreen)
and Then I called it in my template with {{my_map|safe}}
the map doesn't load and it displays blank!!! As you can see on this picture [Heatmap][2] where the heatmap and the clusters are shown but not the tiles.
Can some help or guide me ?
[1]: https://i.stack.imgur.com/9eRWH.png
[2]: https://i.stack.imgur.com/P0Sp4.png
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…