-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tilemap heatmap #3830
Tilemap heatmap #3830
Conversation
…map inputs, clean up method descriptions
…m all maps, added normalize heat data checkbox input, added destroy to _vislib_renderbot.js to properly destroy maps before draw method called which fixed fatal error after changing from heatmap to another maptype
….log, removed a multi-ternary, added tooltips to heatmap inputs
…ox for normalize input, added option for show tooltips
…ouple of methods to be faster
…s, applied nearestFeature and showTooltip methods to all map types
…s, applied nearestFeature and showTooltip methods to all map types
…or when data was not on map
… prelim test failures
…s to scale domain and range values
@@ -662,8 +900,7 @@ define(function (require) { | |||
TileMap.prototype.destroy = function () { | |||
if (this.popups) { | |||
this.popups.forEach(function (popup) { | |||
popup.elem.off('mouseover').off('mouseout'); | |||
popup.layer.unbindPopup(popup.elem); | |||
popup.off('mouseover').off('mouseout'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
popups
is an array of objects returned from layer.on
. I'm not 100% on what's happening here, but if this is a leaflet layer (as I'm assuming it is), does .off()
work this way?
According to the docs, leaflet's .off
needs the handler to properly unbind the event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From http://leafletjs.com/reference.html#events-removeeventlistener
If no function is specified, it will remove all the listeners of that particular event from the object"
This should be fine
LGTM, giving to @simianhacker for last looks |
Defaults ticket here: #3864 |
LGETM |
This is a replacement for #3589 which introduces a heatmap style mode to the tilemap. It fixes the last few issues I know of in that pull, mostly normalizing the tooltip function.