Hi Nathan,
Thanks for your response.
Certainly, here are a couple of example documents:
a) Points on the map:
{
"_index": "a-2021-03",
"_type": "_doc",
"_id": "0b6b7cd8-8afd-11eb-a7f6-3c15c2e6e4e0",
"_version": 1,
"_score": null,
"_source": {
"location": {
"lon": -84.019604,
"lat": 35.733902
},
"coordinates": {
"type": "point",
"coordinates": [
-84.019604,
35.733902
]
},
"@timestamp": "2021-03-22T10:52:22.385Z"
}
b) Lines on the map:
{
"_index": "a-2021-03",
"_type": "_doc",
"_id": "544143ca-8afd-11eb-a7f6-3c15c2e6e4e0",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2021-03-22T10:51:46.261Z",
"location": {
"lat": 40.757182,
"lon": 3.993405
},
"coordinates": {
"type": "linestring",
"coordinates": [
[
3.993405,
40.757182
],
[
4.034979,
40.818492
]
]
}
}
Mappings:
{
"a-2021-01" : {
"mappings" : {
"dynamic" : "true",
"_meta" : { },
"_source" : {
"includes" : [ ],
"excludes" : [ ]
},
"dynamic_date_formats" : [
"strict_date_optional_time",
"yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"
],
"date_detection" : true,
"numeric_detection" : false,
"properties" : {
"coordinates" : {
"type" : "geo_shape"
},
"location" : {
"properties" : {
"lat" : {
"type" : "float"
},
"lon" : {
"type" : "float"
}
}
}
}
}
}
How the layer was made in the maps application:
Data source: Document
Index pattern: a-*
Geospatial field: coordinates
Geospatial field type: geo_shape
Name: my_name
Visibility: [Zoom levels] 0 to 24
Opacity: 75%
Sorting: timestamp desc
Scaling:
[v] Limit results to 10000.
[ ] Show top hits per entity.
[ ] Dynamically filter for data in the visible map area.
Filtering:
[v] Apply global filter to layer data
Layer style:
Lines, border width: 6px