# Hover GeoJSON with multiples polygons with diferents color

**URL:** <https://community.cesium.com/t/hover-geojson-with-multiples-polygons-with-diferents-color/9580>\
**Category:** CesiumJS\
**Created:** [May 8, 2020, 6:05pm UTC](https://community.cesium.com/t/hover-geojson-with-multiples-polygons-with-diferents-color/9580 "2020-05-08T18:05:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevyn\_Pineda\_Ortiz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevyn_pineda_ortiz/32/2071_2.png) [@Kevyn\_Pineda\_Ortiz](https://community.cesium.com/u/Kevyn_Pineda_Ortiz)\
**Post date:** [May 8, 2020, 6:05pm UTC](https://community.cesium.com/t/hover-geojson-with-multiples-polygons-with-diferents-color/9580/1 "2020-05-08T18:05:38Z")

</div>

Hi, to everyone.  
I’m new in Cesium

I would like to ask for help.  
I’m working with a GeoJSON that has multiples polygons.  
I would like to give a diferent color to each polygon, a color that I will decide, not a random color. For that, I’ve found this example:

> **[Cesium Sandcastle](https://sandcastle.cesium.com/?src=GeoJSON%20and%20TopoJSON.html)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

It works really well, but now I would like to change the colors of the polygon when the mouse hovers it.  
I follow this example, and works well.

[https://groups.google.com/forum/#!topic/cesium-dev/Un8g-OWbYW4](https://groups.google.com/forum/#!topic/cesium-dev/Un8g-OWbYW4)

Now, I would like to both things, but I’m not able to do it.  
Can someone help me?

Thanks!

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [May 18, 2020, 7:52pm UTC](https://community.cesium.com/t/hover-geojson-with-multiples-polygons-with-diferents-color/9580/2 "2020-05-18T19:52:01Z")

</div>

If you’re still having issues, can you post a Sandcastle of your full code that you’ve tried?
