luka1199 / geo-heatmap

:world_map: Generate an interactive geo heatmap from your Google location data
MIT License
2.05k stars 226 forks source link

ValueError: Custom tiles must have an attribution. #51

Closed savvasdalkitsis closed 2 years ago

savvasdalkitsis commented 2 years ago

Describe the bug Folium throws an exception due to a missing field:

(2/3) Generating heatmap
Traceback (most recent call last):
  File "/home/savvasdalkitsis/geo-heatmap/geo_heatmap.py", line 302, in <module>
    generator.run(data_file, output_file, date_range, stream_data, settings)
  File "/home/savvasdalkitsis/geo-heatmap/geo_heatmap.py", line 245, in run
    m = self.generateMap(settings)
  File "/home/savvasdalkitsis/geo-heatmap/geo_heatmap.py", line 192, in generateMap
    m = folium.Map(location=self.max_coordinates,
  File "/home/savvasdalkitsis/.local/lib/python3.9/site-packages/folium/folium.py", line 288, in __init__
    tile_layer = TileLayer(tiles=tiles, attr=attr,
  File "/home/savvasdalkitsis/.local/lib/python3.9/site-packages/folium/raster_layers.py", line 111, in __init__
    raise ValueError('Custom tiles must have an attribution.')
ValueError: Custom tiles must have an attribution.

Desktop (please complete the following information):