Skip to content
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

Merged
merged 53 commits into from
May 18, 2015
Merged

Conversation

rashidkpc
Copy link
Contributor

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.

Juan Thomassie added 30 commits April 9, 2015 16:04
…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
…s, applied nearestFeature and showTooltip methods to all map types
…s, applied nearestFeature and showTooltip methods to all map types
@w33ble
Copy link
Contributor

w33ble commented May 15, 2015

Clicking on the zoom to bounds button causes a fatal error:

screenshot 2015-05-15 13 40 51
screenshot 2015-05-15 13 39 17

@@ -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');
Copy link
Contributor

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.

Copy link
Contributor

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

@w33ble
Copy link
Contributor

w33ble commented May 15, 2015

Not a blocker, but there's a lot of options here with a wide range of values - it might be nice to add a *Reset to Defaults` button here. Could absolutely be a new issue though.

screenshot 2015-05-15 14 08 25

@w33ble w33ble assigned simianhacker and unassigned w33ble May 15, 2015
@w33ble
Copy link
Contributor

w33ble commented May 15, 2015

LGTM, giving to @simianhacker for last looks

@rashidkpc
Copy link
Contributor Author

Defaults ticket here: #3864

@simianhacker
Copy link
Member

It's kind of frustrating that changing any setting on the map resets the zoom level.

zoom-reset

@simianhacker
Copy link
Member

Tooltip is not using field formatters

I have the following scripted field:

image

When I use that with the heat map I expect to get the 00:00:00 formatting in the tool tip for the map but instead it's the unformated number:

image

@simianhacker
Copy link
Member

LGETM

simianhacker added a commit that referenced this pull request May 18, 2015
@simianhacker simianhacker merged commit 777c3d0 into elastic:master May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants