Open petersadosky opened 1 year ago
Pinging @elastic/kibana-presentation (Team:Presentation)
Sharing here for reference a related workaround. If datasets are small a solution is to add two runtime fields in the Kibana Data View: midpoint
and midbearing
. The first returns the point in the middle of the line that connects origin and destination and the second returns the angle between the North, origin, and destination.
Then in Maps, on top of the Point to Point layer, a new cluster layer can be created using the midpoint
geometry and adding a new metric with the average of midbearing
. With that data definition, the symbol properties can be set to draw an arrow icon using the aggregated bearing as the direction.
[!NOTE] I think the visualization improves with the arrow in the middle but of course, the
midpoint
can be omitted and the arrow can be rendered at the end
Sample map with the arrows drawn in the middle point
Dashboard Saved Object for the Kibana Flights sample dataset
An evident improvement is to compute these two fields at ingest with a pipeline and similar code so everything is ready for the rendering.
Describe the feature:
Kibana v.8.9.0
Functionality to add an arrow to the end of each line segment in a Kibana Track layer to show directionality.
It is possible to do this currently by adding an additional "Top hits by entity" layer, and defining an "angle / degree" field in the index. The best way to get those angles though, at least that I'm aware of, is to query the existing index for the most recent record (filtered by whatever fields), and using the location field in that record to calculate the angle between that and the new incoming record. Downside is having to query the index every time a new record is coming in. And then also update the angle field for the most recent record with the calculated value.
Describe a specific use case for the feature:
Displaying vehicle routes on a map.
Thank you for your time! Would be great to have a built-in way to add directionality. Peter