You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/maps/maps-aggregations.asciidoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Grid aggregation layers use {ref}/search-aggregations-bucket-geotilegrid-aggrega
47
47
Symbolize grid aggregation metrics as:
48
48
49
49
*Clusters*:: Creates a <<vector-layer, vector layer>> with a cluster symbol for each gridded cell.
50
-
The cluster location is the weighted centroid for all geo-points in the gridded cell.
50
+
The cluster location is the weighted centroid for all documents in the gridded cell.
51
51
52
52
*Grid rectangles*:: Creates a <<vector-layer, vector layer>> with a bounding box polygon for each gridded cell.
53
53
@@ -60,7 +60,7 @@ To enable a grid aggregation layer:
60
60
To enable a blended layer that dynamically shows clusters or documents:
61
61
62
62
. Click *Add layer*, then select the *Documents* layer.
63
-
. Configure *Index pattern* and the *Geospatial field*. To enable clustering, the *Geospatial field* must be set to a field mapped as {ref}/geo-point.html[geo_point].
63
+
. Configure *Index pattern* and the *Geospatial field*.
64
64
. In *Scaling*, select *Show clusters when results exceed 10000*.
Copy file name to clipboardExpand all lines: docs/maps/maps-getting-started.asciidoc
+6-29Lines changed: 6 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,40 +68,17 @@ The first layer you'll add is a choropleth layer to shade world countries
68
68
by web log traffic. Darker shades symbolize countries with more web log traffic,
69
69
and lighter shades symbolize countries with less traffic.
70
70
71
-
==== Add a vector layer to display world country boundaries
72
-
73
71
. Click *Add layer*.
74
-
. Select the *EMS Boundaries* layer.
72
+
. Select *Choropleth*.
75
73
. From the *Layer* dropdown menu, select *World Countries*.
74
+
. Under *Statistics source*, set *Index pattern* to *kibana_sample_data_logs*.
75
+
. Set *Join field* to *geo.src*.
76
76
. Click the *Add layer* button.
77
77
. Set *Name* to `Total Requests by Country`.
78
78
. Set *Opacity* to 50%.
79
79
. Click *Add* under *Tooltip fields*.
80
80
. In the popover, select *ISO 3166-1 alpha-2 code* and *name* and click *Add*.
81
-
82
-
===== Join the vector layer with the sample web log index
83
-
84
-
You now have a vector layer containing the world countries.
85
-
To symbolize countries by web traffic, you'll need to augment the world country features with the count of Elasticsearch weblog documents originating from each country.
86
-
To do this, you'll create a <<terms-join, term join>> to link the vector source *World Countries* to
87
-
the {es} index `kibana_sample_data_logs` on the shared key iso2 = geo.src.
88
-
89
-
. Click plus image:maps/images/gs_plus_icon.png[] next to the *Term Joins* label.
90
-
. Click *Join --select--*
91
-
. Set *Left field* to *ISO 3166-1 alpha-2 code*.
92
-
. Set *Right source* to *kibana_sample_data_logs*.
93
-
. Set *Right field* to *geo.src*.
94
-
. Click *and use metric count*.
95
-
. Set *Custom label* to *web logs count*.
96
-
97
-
===== Set the layer style
98
-
99
-
All of the world countries are still a single color because the layer is using <<maps-vector-style-static, static styling>>.
100
-
To shade the world countries based on which country is sending the most requests, you'll need to use <<maps-vector-style-data-driven, data driven styling>>.
101
-
102
-
. Under *Fill color*, change the selected value from *Solid* to *By value*.
103
-
. In the field select input, select *web logs count*.
104
-
. Select the grey color ramp.
81
+
. Under *Fill color*, select the grey color ramp.
105
82
. Under *Border color*, change the selected color to *white*.
106
83
. Click *Save & close*.
107
84
+
@@ -127,7 +104,7 @@ This layer displays web log documents as points.
127
104
The layer is only visible when users zoom in the map past zoom level 9.
128
105
129
106
. Click *Add layer*.
130
-
. Click the *Documents* layer.
107
+
. Select *Documents*.
131
108
. Set *Index pattern* to *kibana_sample_data_logs*.
0 commit comments