# Two Data Shapes

**URL:** <https://forum.inductiveautomation.com/t/two-data-shapes/18711>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 3, 2018, 5:50pm UTC](https://forum.inductiveautomation.com/t/two-data-shapes/18711 "2018-07-03T17:50:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agweb.salinas](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@agweb.salinas](https://forum.inductiveautomation.com/u/agweb.salinas)\
**Post date:** [July 3, 2018, 5:50pm UTC](https://forum.inductiveautomation.com/t/two-data-shapes/18711/1 "2018-07-03T17:50:47Z")

</div>

Hey All,  
I’m having a little difficulty displaying two data shapes on top of each other. I have Polygon data shape that’s controlled by a data table or .dataShapes.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/204e96d33d0cd365d5f61ec4935ed76cef0d28b9.PNG)

The problem comes when I call for the next data shape in script(controlled by a button) it replaces the first data shape with the new one. I figure its because when I call .dataShapes it erases the previous values in the table. (code for second shape and shape below).

event.source.parent.getComponent(‘Map Panel’).dataShapes = project.agricultural.parseToShapes(coords)

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0142f971c408a9cebab110d75ca73b60251a4c2a.PNG)

Does anyone know how I can place these two data shapes on top of each other?

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [July 3, 2018, 5:56pm UTC](https://forum.inductiveautomation.com/t/two-data-shapes/18711/2 "2018-07-03T17:56:36Z")

</div>

This is the Map Panel Module from Kymera right?

@Kyle_Chase may be able to assist

---

<div class="post-metadata">

**Author:** ![agweb.salinas](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@agweb.salinas](https://forum.inductiveautomation.com/u/agweb.salinas)\
**Post date:** [July 3, 2018, 6:04pm UTC](https://forum.inductiveautomation.com/t/two-data-shapes/18711/3 "2018-07-03T18:04:15Z")

</div>

> [@ethomason](#):
>
> This is the Map Panel Module from Kymera right?

Yes its a Kymera Module

---

<div class="post-metadata">

**Author:** ![travis.sareault](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@travis.sareault](https://forum.inductiveautomation.com/u/travis.sareault)\
**Post date:** [July 3, 2018, 9:18pm UTC](https://forum.inductiveautomation.com/t/two-data-shapes/18711/4 "2018-07-03T21:18:57Z")

</div>

I’ve reached out and followed up via email.
