Vector map, geocentroid, tilemap bug fixes#10824
Vector map, geocentroid, tilemap bug fixes#10824thomasneirynck wants to merge 41 commits intoelastic:masterfrom
Conversation
add tooltip boilerplate
move legend with option add tms settings add min/max zoom settings add valueformatters
|
@thomasneirynck some quick feedback from vector maps below Since we can only define one metric, can we automatically expand? I see no reason to have the metric options collapsed by default. Users can quickly glance over these things if it's not in their face If I leave the visualization and return, I enter a zoomed out screen. I've been able to reproduce (with and without refreshing Kibana) multiple times Will add more tomorrow, need to find a better dataset to use. |
|
@alexfrancoeur thanks for the quick feedback already. the zooming is a known issue, this needs to be fixed. agreed on the auto-expand |
|
@thomasneirynck alright, have some data and up and running now. Good that we agree on auto-expanding. Both configurations only have one option - may as well save some clicks :-) If we auto-expand here, I believe we'd need to on tile map as well (and possibly other visualizations). This should really be consistent for configurations with only one option available. It may be a larger task than vector maps. You have already stated that this is a bug, but I thought I'd share what it now looks like with data as well. I am also seeing this in tile maps as well. Is there any error handling we can provide if the field provided does not match the two letter abbreviation or state / country name? If I switch between World Countries and States and hit play, I lose the tooltip when hovering over a country. I can't seem to get it back by toggling any of the other configurations either. There also seems to be a bit of lag when switching between the two in the dropdown without hitting play. Are we loading anything behind the scenes like a geojson file? Also, as you can see in the above GIF the zoom is a bit touchy. It could just be my mouse (magic mouse). I'll have to try on my laptop as well. I only mention because it looks as if you enhanced the zooming capabilities. I don't believe we have much control over the colors but white is fairly difficult to see. Maybe we could provide an option to configure the outline color of the vector shape? I got this error when attempting to use geo centroid for a second time. Not sure why it worked with first time. Also - is the geo centroid aggregation meant to be used in tile maps? I see it as an option for other visualizations but not the tile map. Hope this helps - will ping you if I find anything else. |
|
thanks @alexfrancoeur, that's great.
This is a tough one. How do we know this is because of an error, or just an artifact of the data? I would suggest we show a warning when there is data from ES that cannot be joined to the vector map. I'll make this part of this PR.
|
|
@thomasneirynck Great work! In addition to geo-centroid aggregations, it appears that pipeline aggs can't be use with Vector Map, so we should remove those from the picklist as well Also, when i change the aggregation back, the red message tends to hang around... this may be more of an issue that is already there |
|
@thomasneirynck We previously talked about a data label option for this visualization type, have you given it more thoughts? I don't see this option in the PR I just pulled down, even though the task at the top is checked off. |
|
@thomasneirynck Regarding the geocentroid option in the Tilemap, could we format the option differently?
|
|
@thomasneirynck I saw some errors in the console, not sure if you already know of them? UPDATE: Never mind, it's a chrome extension. |
|
@thomasneirynck I had significant slowness drilling in on the logs getting started dataset, going from the previous zoom level into this one and beyond. This is specifically bad when i turn on geocentroid as an option. Could someone double-check it's not just me? Slowness was so bad, i thought things were broken. Have we "load tested" this PR on the tilemap, meaning used it heavily with a large datasets, panning and zooming, etc..? |
@tbragin This looks like a chrome extension is throwing this error, probably not related to the Tilemap changes |
|
Ugh yeah, i forgot i had that in there... Thanks @kobelb :) |
|
@tanya [EDIT] this is fixed now |
|
@tbragin with regard to labeling the shapes: The labeling required an extra plugin to Leaflet, and I'm hesitant to introduce dependencies-to-dependencies. Especially since our reliance on the heatmap-plugin is currently preventing us from upgrading to the latest Leaflet version. But I'll take a second look, and let you know. |
1 similar comment
|
@tbragin with regard to labeling the shapes: The labeling required an extra plugin to Leaflet, and I'm hesitant to introduce dependencies-to-dependencies. Especially since our reliance on the heatmap-plugin is currently preventing us from upgrading to the latest Leaflet version. But I'll take a second look, and let you know. |
|
Separated out geocentroid/tilemap fixed in #10871. This is to resolve blocker quicker. |











Reopening Vector Map against master iso. feature branch (cf. #10448)
The scope of this PR is the introduction of the vector map, which includes some map enhancements that will benefit both TileMap and VectorMap.
Feedback:
auto-expand bucket selection (since there is only a single option)(logged separately Visualization with only a single bucket should not require user to select bucket-type #10833)Todos: