# Different color for different polygon inside the same placemark on a KML file

**URL:** https://community.cesium.com/t/different-color-for-different-polygon-inside-the-same-placemark-on-a-kml-file/3603
**Category:** CesiumJS
**Created:** [January 20, 2016, 11:42am UTC](https://community.cesium.com/t/different-color-for-different-polygon-inside-the-same-placemark-on-a-kml-file/3603 "2016-01-20T11:42:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gianmaria\_Dalla\_Torr](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@Gianmaria\_Dalla\_Torr](https://community.cesium.com/u/Gianmaria_Dalla_Torr)
#### Post date: [January 20, 2016, 11:42am UTC](https://community.cesium.com/t/different-color-for-different-polygon-inside-the-same-placemark-on-a-kml-file/3603/1 "2016-01-20T11:42:38Z")

</div>

As the title, is it possible have different color for different polygon inside the same placemark on a KML file?

For example:

---

<div class="post-metadata">

### Author: ![Gianmaria\_Dalla\_Torr](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@Gianmaria\_Dalla\_Torr](https://community.cesium.com/u/Gianmaria_Dalla_Torr)
#### Post date: [January 20, 2016, 11:44am UTC](https://community.cesium.com/t/different-color-for-different-polygon-inside-the-same-placemark-on-a-kml-file/3603/2 "2016-01-20T11:44:59Z")

</div>

\*\*\*\*

\*\* \*\*

\*\* \*\*

\*\* \*\*

To be more clear…

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [January 20, 2016, 3:25pm UTC](https://community.cesium.com/t/different-color-for-different-polygon-inside-the-same-placemark-on-a-kml-file/3603/3 "2016-01-20T15:25:39Z")

</div>

[KML MultiGeometry](https://developers.google.com/kml/documentation/kmlreference?hl=en#multigeometry) is what you want. However, this will get broken down into individual entities when loaded into Cesium (since the Entity API does not support multi-geometry yet).

If your main goal is Cesium visualization, I would recommend CZML (or the Entity API directly) over KML. CZML will continue to evolve and improve while the KML standard is a dead-end.

---

<div class="post-metadata">

### Author: ![Gianmaria\_Dalla\_Torr](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@Gianmaria\_Dalla\_Torr](https://community.cesium.com/u/Gianmaria_Dalla_Torr)
#### Post date: [January 20, 2016, 4:01pm UTC](https://community.cesium.com/t/different-color-for-different-polygon-inside-the-same-placemark-on-a-kml-file/3603/4 "2016-01-20T16:01:36Z")

</div>

The problem is that when i insert the tag inside a its characteristics is spreading throughout the placemark.

Also if i use an “id” for the different styles and i recalling them using in each individual polygon or multigeometry nothing change.

Only one color for all placemark.
