# How to access emsfile for USA States

**URL:** <https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [April 2, 2021, 1:43pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110 "2021-04-02T13:43:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kavorka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavorka/32/76976_2.png) [@kavorka](https://discuss.elastic.co/u/kavorka)\
**Post date:** [April 2, 2021, 1:43pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110/1 "2021-04-02T13:43:23Z")

</div>

Trying to get a basic map of USA States to show up via vega. With the following code, I am getting the error "emsfile "USA States" does not exist"

Any idea what the emsfile should be, or what could be wrong:

```auto
    {
      "$schema": "https://vega.github.io/schema/vega/v5.json",
      "config": {"kibana": {"type": "map", "latitude": 40, "longitude": -97, "zoom": 4}},
      "data": [
        {
          "name": "usastates",
          "url": {"%type%": "emsfile", "name": "USA States"},
          "format": {"type": "json", "property": "features"}
        },
        {
          "name" : "statescount",
          "values" : [
            { "state" : "NY", "count" :"100"},
            { "state" : "CA", "count" : "400"},
            { "state" : "NJ", "count" : "25"}
          ]
        }
      ],
      "marks": [
        {
          "type": "shape",
          "from": {"data": "usastates"},
          "transform": [{"type": "geoshape", "projection": "projection"}]
        }
      ]
    }

```

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [April 2, 2021, 1:53pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110/2 "2021-04-02T13:53:42Z")

</div>

Hi @kavorka,

welcome to the community. May I ask which version of kibana are you using for the visualization? I saw there has been few changes to the emsfile handling in Vega during different versions, so just want to make sure they are not your case.

---

<div class="post-metadata">

**Author:** ![kavorka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavorka/32/76976_2.png) [@kavorka](https://discuss.elastic.co/u/kavorka)\
**Post date:** [April 2, 2021, 4:46pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110/3 "2021-04-02T16:46:08Z")

</div>

Thanks Marco,

I am using 7.9 ; and this is hosted on AWS.

Have a good one.

---

<div class="post-metadata">

**Author:** ![kavorka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavorka/32/76976_2.png) [@kavorka](https://discuss.elastic.co/u/kavorka)\
**Post date:** [April 5, 2021, 5:12pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110/4 "2021-04-05T17:12:32Z")

</div>

This works in version 7.12 hosted on my local. AWS does not support 7.12; may have to move to the cloud.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 5, 2021, 8:10pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110/5 "2021-04-05T20:10:43Z")

</div>

Hi @kavorka

Well certainly take look at [Elastic Cloud](https://www.elastic.co/elasticsearch/service) the official hosting of Elasticsearch perhaps that would be a good solution. You can try it free for 14 days to make sure.

---

<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:** [May 3, 2021, 8:11pm UTC](https://discuss.elastic.co/t/how-to-access-emsfile-for-usa-states/269110/6 "2021-05-03T20:11:02Z")

</div>

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