Fix Window Glitch as Seen in Interactive Choropleth Leaflet Tutorial

10 views
Skip to first unread message

Cory Rahman

unread,
Jan 19, 2018, 1:19:51 PM1/19/18
to Leaflet
Hi group,

There's a bug I need help fixing.

It's visible in this Leaflet Tutorial: http://leafletjs.com/examples/choropleth/

If you pan the map so that the States layer is under the info pane in the upper-right, then hover your mouse overlapping the window, there's an infinite loop (window spaz) caused by the mouseenter mouseout functions. I have this same issue with a production map I've created based on this Leaflet example.

Anyone have a solution for this?

Cory Rahman

unread,
Jan 22, 2018, 10:48:33 AM1/22/18
to Leaflet
UPDATE: Solution found.

I added the following css to the .info class:

                pointer-events: none;

Leaflet should really include this css in their example too.
Reply all
Reply to author
Forward
0 new messages