Skip to content

Folium Heatmap doesn't load properly #1146

@failmetwice

Description

@failmetwice

Please add a code sample or a nbviewer link, copy-pastable if possible

# Rendering map 

def infection_heatmap(dic, regions_trans, map_name):
    '''Init Visuals'''
    [...]
    regions, fol_map = init_render(dic, regions_trans)

    #render regions
    for k in regions:
        location = regions[k]["localisation"]
        
        circle_size += [...] #float 
        prc_infected = [...] #float [0,1]

        point = [ [location[0], location[1], prc_infected * 5000] ]
        HeatMap(    data= point,
                    radius= circle_size 
                ).add_to(fol_map)

    fol_map.save(map_name)
    print("Infection map generated")

Problem description

When i open the map to take a screenshot. For some points It add a 'semi-dot' that looks to start from the upper left corner of the tile.

How can i delete the 'semi-dot'

Output with heatmap

screen-2006-1-inf

screen-2007-1-inf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions