-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Even better map #1166
Even better map #1166
Conversation
…g a polygon. The regions are linked to filters. You can remove either the filter or the region on the map, both will work. To accomodate this feature I have also: upgraded leaflet, upgraded the marker cluster plugin, added the leaflet.draw plugin. I also made the OSM url configurable. Finally, I have added some code the the filterServer and to the filtering panel to accomodate geo_polygon filter types.
Looks like Great feature. |
One problem I discovered today: when I use grunt build, somehow the leaflet.js file is not included in the final dist version. I'm very new to this and so far haven't found the reason. Could just as well be a problem on my local machine. |
Thanks, will get this on the list for review. Might take a bit, there's a lot here. |
Accidentally closed that, sorry, reopened. |
A few notes:
|
All good points. I can think of to ways to solve these:
I'm not sure if editing a selection is an important enough feature to 2014-04-28 22:32 GMT+02:00 Rashid Khan notifications@github.com:
|
I'd vote to just drop the editing functionality and only allow one box to be drawn. If another box is drawn it overwrites the old one. Keeping the red box is fine as long as it repopulates when the dashboard is loaded. |
Ok so I have some work to do ;-) 2014-04-28 22:58 GMT+02:00 Rashid Khan notifications@github.com:
|
…w selection overwrites the old one.
… undefined so a new one can be drawn later
@rashidkpc I removed the edit/delete controls. Drawing a selection while another is still there will replace it. Selections stay on the map. A geo_polygon filter now also shows the field on which the filter is active. |
… This avoids the evil undefined
… (prevents error in console)
Looks better, currently a couple more issues
|
…ibrary are not rewritten
Ok here's the current state:
Just FYI: it took me a long time to fix an annoying issue where image urls in vendor css got rewritten. Eventually I managed to fix this by editing tasks/options/cssmin.js and adding a relative root url. Initially I also updated the Grunfile.js to newer versions of all the packages, but I reverted this since it was not needed. I would still recommend you to upgrade to the newer versions of all packages. If you want I can offer that file as a seperate pull request. |
+1 |
…to_v3.1.0 * commit 'c19105cf3f2dbefe7aa41caebca5bcf40efff3b7': (51 commits) Fixed spurious version too low message when elasticsearch is unreachable Update module.js fixed typo preventing filters from being applied to topN queries Removing console.log message Remove apply, update version to 3.1.0 Add panel height params back in to fix column panel sizing. Closes elastic#1146 Closes elastic#1206. Fix share url in firefox Fix box-sizing in firefox, fix spinner pushing down panel-extra-container, closes elastic#1218 Fix column panel after 430d7fa. Add jsonpath to license file Reverting elastic#1163, the overhead is larger than I anticipated and regularly grabbing empty data sets causes some visual oddities Add margin to bottom of error Add ignore_unmapped to sorts, closes elastic#1153 Simplify docs, add tooltip, clean up editor Use a field filter instead of terms filter so that analysis is done on the value. Closes elastic#1166. Closes elastic#1142 Send render whenever window size changes or a panel is resized Simplify kibanaPanel directive, fix css that stopped overflow:scroll from working on the table panel Fix for possibility of partial spans remove commented out less Add drag to resize panel widths. Closes elastic#329 ...
@eriky I was just about to go ahead and improve the map, but I see you've done a lot of the hard work for us already! I just have a few quick notes that would improve the experience more:
If you aren't able to do any of this, I would be more than willing to take some time to do it. The current bettermap module hurts my soul, but only because I develop full time with Leaflet and know it's intricacies and problem spots. @rashidkpc /other kibana admins, it would be great to accept @eriky's changeset with or without my suggestions. Leaflet 0.6-dev is getting long in the tooth now, and Leaflet 0.7 has huge performance gains/better browser and mobile support. Thanks |
Hey @robbiet480, unfortunately I don't have time to add any more changes. I'd love to see your changes added so if you want to work on it: great! Maybe @rashidkpc can comment too. I'd be nice to see these improvements in Kibana at some point in the future ;-) |
@eriky Great, i'll take care of them today hopefully. Thanks for the quick response. @rashidkpc Is it a safe assumption that the changes would be accepted soon? This issue has been sitting for a while. Normally I wouldn't ask, but Leaflet 0.8 is coming out soon supposedly and it would be good to just wait for that if the issue is going to sit for a while. |
Woops! Sorry about that! We recently replaced the master branch with Kibana 4. This action force closed all of the old pull requests against master. We will be reviewing these on a case-by-case basis and creating new tickets as necessary. The good news is that many long requested features can be found in Kibana 4, and we're being entirely open about our roadmap. Check out the roadmap tickets (which we're still filling in) here. If you're looking for the old Kibana 3 code you can find it here. |
We're stopping development on Kibana 3 and focusing on Kibana 4 going forward. Since Kibana 4 won't be using Bettermaps, I'm going to leave this closed. |
What will Kibana4 be using in place of Bettermaps? Is any replacement planned? This was an awesome feature. Looked through the milestones but couldn't find anything relevant. |
Nevermind, I see this: #1549 |
Upgrade to bettermap: you can now select regions on the map by drawing a polygon. The regions are linked to filters. You can remove either the filter or the region on the map, both will work.
To accomodate this feature I have also:
Finally, I have added some code the the filterServer and to the filtering panel to accomodate geo_polygon filter types.