Still have problem Region Map


(Alberto Sironi) #1

Hi evrybody, i got a bit confused about configuration of region map.
I download a shape file from a site elastic configuration region map page a file geojson of Brasil.
the file looks like:

{"type": "FeatureCollection","features": [
{"type": "Feature", "properties": {"id":3284,"nome":"CruzMachado","uf":"PR","populacao":"18040","pib":"145687","estado_id":"18","codigo_ibg":"4106803"},"geometry": { "type": "Polygon", "coordinates": [ [ [ -50.981679537086883, -25.665719405704625 ]

Follow the config page of elastic region map i put this code on my kibana.yml file:
regionmap:
layers:
- name: "Brazilian States"
url: "/home/sirox84/elk-local/br_muns.geojson"
attribution: "https://exploratory.io/maps"
fields:
- name: "STATE_NAME"
description: "State Name"

One of you suggest to me to put this geojson file in:
The location of the geojson file as provided by a webserver.

But i don understand how can i do this step.
How i can setup and configure my kibana.yml file?

I have also to modify my logstash.conf?

Also now i read that there is a possibility to have a vector layer with elasti map service.
This is kind of differetn things?

Hope you can help me.
Thanks a lot.
Alberto


(Brandon Kobel) #2

Hey @Alberto_Sironi, https://www.elastic.co/blog/custom-region-maps-in-kibana-6-0 has a section titled "Serving up Geojson File" which uses an npm library to do so.


(Alberto Sironi) #3

Thanks a lot , i will try and i let you know.


(Alberto Sironi) #4

Hi man, I did exactly what the page recommend to do.
but I got this error message even in the coordinate map that before was working.
Coordinate Map: Could not retrieve manifest from the tile service: status -1
I would like to make an important question regarding region maps.
Now finally I can run my geojson locally in a port 8000 perfect.
http-server --cors='*' -p 8000

The problem now is how to connect this geojson with my dataset.
I think with this field in the kibana.yml file

  • name: "STATE_NAME" but this name should be exactly like the name in my database?

Thanks a lot
Alberto


(Alberto Sironi) #5

Ok now i can visualyzed.
Thanks a lot.


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.