Adding a choropleth layeredit

Now that you have a map, you’ll want to add layers to it. The first layer you’ll add is a choropleth layer to shade world countries by web log traffic. Darker shades symbolize countries with more web log traffic, and lighter shades symbolize countries with less traffic.

Add a vector layer from the Elastic Maps Service sourceedit

  1. In the map legend, click Add layer.
  2. Click the Vector shapes data source.
  3. From the Layer dropdown menu, select World Countries.
  4. Click the Add layer button.
  5. Set Layer name to Total Requests by Country.
  6. Set Layer transparency to 0.5.

Join the vector layer with the sample web log indexedit

You must add the web log traffic property to the world countries so that the property is available for styling. You’ll create a terms join to link the vector source World Countries to the Elasticsearch index kibana_sample_data_logs on the shared key iso2 = geo.src.

  1. Click plus maps/images/gs_plus_icon.png to the right of Term Joins label.
  2. Click Join --select--
  3. Set Left field to ISO 3166-1 alpha-2 code.
  4. Set Right source to kibana_sample_data_logs.
  5. Set Right field to geo.src.

Set the vector styleedit

The final step is to set the vector fill color to shade the countries by web log traffic.

  1. Click maps/images/gs_link_icon.png to the right of Fill color.
  2. Select the grey color ramp.
  3. In the field select input, select count of kibana_sample_data_logs:geo.src.
  4. Click Save & close.

    Your map now looks like this:

    maps/images/gs_add_cloropeth_layer.png