Skip to content

Heatmap is visulized in the back of overlay image #1201

Closed

Description

@AlABarazi

The problem is that the heatmap is visualized in the back of image overlay layer
Aug-29-2019 17-54-18

Activity

  1. Conengmo commented on Aug 29, 2019

    @Conengmo
    Member

    Hi @alabrazi, great gif, the issue is clear. I remember we had a discussion on that before. I suspect this is very similar. You can read it here: #767. In short, it's a Leaflet issue. I'll include the solution listed there here as well:

    A quick dirty fix is to append the following to your html file: <style>.leaflet-heatmap-layer{z-index:300 !important}</style> Any z-index higher than 200 does the trick. You can add it to a custom template as described in #86.

    Can you try that and let us know if it helped?

  2. Conengmo commented on Sep 21, 2019

    @Conengmo
    Member

    I’ll close the issue since I think there’s not much we can do at the folium side.

  3. JavierParada commented on Oct 19, 2020

    @JavierParada

    Where should I include <style>.leaflet-heatmap-layer{z-index:300 !important}</style>?

  4. JavierParada commented on Dec 5, 2020

    @JavierParada

    How can we solve this same issue with HeatMapWithTime instead of HeatMap?

  5. Dakcser commented on Apr 3, 2023

    @Dakcser

    I quess better late then never. If anybody else has problem with HeatMapWithTime drawing data behind ImageOverlay. Instead of using above mentioned line of HTML code which tries to push heatmap layer foward.

    You can instead push ImageOverlay back with code <style>.leaflet-image-layer{z-index:-1 !important}</style> (Index -1 sets image back of the stack).

    Sieppaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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