# Worldmap and KML data

**URL:** <https://discourse.nodered.org/t/worldmap-and-kml-data/54076>\
**Category:** General\
**Created:** [21 November 2021 18:57 UTC](https://discourse.nodered.org/t/worldmap-and-kml-data/54076 "2021-11-21T18:57:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aa0z](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Post date:** [21 November 2021 18:57 UTC](https://discourse.nodered.org/t/worldmap-and-kml-data/54076/1 "2021-11-21T18:57:27Z")

</div>

I'm having some trouble displaying KML data on the Worldmap. Here is my payload.command.map data.

I got this data off the US census website and copied the raw KML data for Missouri. I'm probably not providing enough context data here, but wanted to make sure the syntax was correct and see if anybody had tips on why this isn't drawing on the map?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/41bbfda887f7e16ba85d19ebd1d5035742a71f26.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 November 2021 19:09 UTC](https://discourse.nodered.org/t/worldmap-and-kml-data/54076/2 "2021-11-21T19:09:20Z")

</div>

that doesn't look like any kml file I've ever seen...  
eg  
[https://renenyffenegger.ch/notes/tools/Google-Earth/kml/index](https://renenyffenegger.ch/notes/tools/Google-Earth/kml/index)

---

<div class="post-metadata">

**Author:** ![aa0z](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Post date:** [22 November 2021 00:09 UTC](https://discourse.nodered.org/t/worldmap-and-kml-data/54076/3 "2021-11-22T00:09:29Z")

</div>

Does someone have a few examples of sending KML data to the node? I see there is a previous string but I can't get the example to import into my node red instance.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 November 2021 09:30 UTC](https://discourse.nodered.org/t/worldmap-and-kml-data/54076/4 "2021-11-22T09:30:20Z")

</div>

Here is a simple example

```auto
[{"id":"ea4fe99a.da6988","type":"inject","z":"d3236f0.2a14a9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":1230,"wires":[["4d5534e3.8c5f7c"]]},{"id":"4d5534e3.8c5f7c","type":"http request","z":"d3236f0.2a14a9","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://raw.githubusercontent.com/mapbox/Simple-KML/master/sample/example.kml","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":330,"y":1230,"wires":[["df81f2a3.3df45","bc0e0c0d.a7e86"]]},{"id":"df81f2a3.3df45","type":"change","z":"d3236f0.2a14a9","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.command.map.kml","tot":"msg"},{"t":"set","p":"payload.command.map.overlay","pt":"msg","to":"TestKML","tot":"str"},{"t":"set","p":"payload.command.map.icon","pt":"msg","to":"fa-plane","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":1230,"wires":[["d1967997.d1aa58","c64413091cca2aee"]]},{"id":"bc0e0c0d.a7e86","type":"debug","z":"d3236f0.2a14a9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":1190,"wires":[]},{"id":"c64413091cca2aee","type":"worldmap","z":"d3236f0.2a14a9","name":"","lat":"","lon":"","zoom":"","layer":"","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"false","showgrid":"false","allowFileDrop":"false","path":"/worldmap","overlist":"DR,CO,RA,DN,HM","maplist":"OSMG,OSMC,EsriC,EsriS,EsriT,EsriDG,UKOS,SW","mapname":"","mapurl":"","mapopt":"","mapwms":false,"x":780,"y":1230,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 January 2022 09:30 UTC](https://discourse.nodered.org/t/worldmap-and-kml-data/54076/5 "2022-01-21T09:30:28Z")

</div>

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