# Kibana 5.5.0 Can't get region map to work

**URL:** <https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560>\
**Category:** Kibana\
**Created:** [July 18, 2017, 11:03am UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560 "2017-07-18T11:03:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rikkemannen](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Rikkemannen](https://discuss.elastic.co/u/Rikkemannen)\
**Post date:** [July 18, 2017, 11:03am UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/1 "2017-07-18T11:03:51Z")

</div>

Hi,

I'm trying to visualize my own geojson layer in the new region map visualization, I've tried for quite a while now but no luck.

I am hosting my geojson file from my own local nginx webserver. I can reach and download the file using curl on the kibana machine.

This is the geojson file:

{"name":"test","type":"FeatureCollection"  
,"features":[  
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[20.8979600411144,62.8089611849282],[20.5529737049032,58.9602616564856],[20.5529737049032,58.9602616564856],[13.9261395703638,58.9786035686896],[13.5238205488445,62.8525899907285],[20.8979600411144,62.8089611849282]]]},"properties":{"name":"testsquare","id":"0"}}  
]}

Which is basically just one square.

This is the entry in my config file:

regionmap:  
layers:  
- name: "test"  
url: "http:///geometries/test.geojson"  
fields:  
- name: "name"  
description: "name"

I have an index with a name-attribute that matches the name "testsquare" but nothing is shown in the map. When i switch to the example "US States" map I can see those boundaries.

I have also tried using "file:///usr/share/kibana/geometries/..." and "/usr/share/kibana/geometries/..." as the url value but no luck. The kibana user have permission to use the geometries folder and all files in it.

What am I missing? 😕

---

<div class="post-metadata">

**Author:** ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)\
**Post date:** [July 18, 2017, 8:50pm UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/2 "2017-07-18T20:50:48Z")

</div>

@Rikkemannen,  
I just got this configured correctly.

- I created a simple webserver using [superstatic](https://www.npmjs.com/package/superstatic)
  - Created the a file called `bigfunger.geojson` and pasted the geojson file that you provided above.
  - Created a `superstatic.json` file to configure superstatic to allow CORS, and to allow the `kbn-version` header that kibana sends with its request (shown below)
  - started up the superstatic server.

**superstatic.json**

```auto
{
  "headers": [
    {
      "source" : "**/*.@(geojson)",
      "headers" : [{
        "key" : "Access-Control-Allow-Origin",
        "value" : "*"
      },
      {
        "key": "Access-Control-Allow-Headers",
        "value": "kbn-version"
      }]
    }
  ]
}

```

- Configured kibana to access that server:

```auto
regionmap:
  layers:
     - name: "Bigfungers Stuff"
       url: "http://localhost:3474/bigfunger.geojson"
       fields:
          - name: "name"
            description: "name"

```

- Ran the visualization, selecting my Vector map in the Options.  

- Profit!

---

<div class="post-metadata">

**Author:** ![Rikkemannen](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Rikkemannen](https://discuss.elastic.co/u/Rikkemannen)\
**Post date:** [July 19, 2017, 2:29pm UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/3 "2017-07-19T14:29:39Z")

</div>

This did not work for me... I installed superstatic and started an instance with the exact configuration you provided but still I see no shapes.

I see no errors in any log files that I know of. Kind of stumped here ☹

---

<div class="post-metadata">

**Author:** ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)\
**Post date:** [July 19, 2017, 2:49pm UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/4 "2017-07-19T14:49:48Z")

</div>

Does the browser console show you any errors? While I was trying to get this configured I was seeing errors there.

---

<div class="post-metadata">

**Author:** ![Rikkemannen](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Rikkemannen](https://discuss.elastic.co/u/Rikkemannen)\
**Post date:** [July 19, 2017, 4:45pm UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/5 "2017-07-19T16:45:49Z")

</div>

Ah, there it is!

`commons.bundle.js?v=15382:29 Mixed Content: The page at 'https://xxx.xxx.xxx.xxx/kibana/app/kibana#/visualize/create?type=region_map&indexPattern=xxx&_g=h@44136fa&_a=h@61523ec' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://localhost:3474/test.geojson'. This request has been blocked; the content must be served over HTTPS.`

I switched to SSL on my nginx server and it worked like a charm.

Happiness 😄 Thanks for the help 🙂

---

<div class="post-metadata">

**Author:** ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)\
**Post date:** [July 19, 2017, 6:40pm UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/6 "2017-07-19T18:40:49Z")

</div>

Glad I could help!

Thanks for giving me a reason to dig into the region map. 🙂

Happy Kibana-ing!

---

<div class="post-metadata">

**Author:** ![Alexandre\_Juma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandre_juma/32/21704_2.png) [@Alexandre\_Juma](https://discuss.elastic.co/u/Alexandre_Juma)\
**Post date:** [August 2, 2017, 12:16am UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/7 "2017-08-02T00:16:45Z")

</div>

Hi guys,

Is it possible to host the geojson directly in kibana to avoid having a cors enabled webserver just for this?

How would the url look like for this?

Thanks a bunch

BR  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 30, 2017, 12:17am UTC](https://discuss.elastic.co/t/kibana-5-5-0-cant-get-region-map-to-work/93560/8 "2017-08-30T00:17:14Z")

</div>

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