# Highlighting/indicating selected CZML objects

**URL:** <https://community.cesium.com/t/highlighting-indicating-selected-czml-objects/1504>\
**Category:** CesiumJS\
**Created:** [September 18, 2014, 4:09am UTC](https://community.cesium.com/t/highlighting-indicating-selected-czml-objects/1504 "2014-09-18T04:09:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackie\_Ng](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@Jackie\_Ng](https://community.cesium.com/u/Jackie_Ng)\
**Post date:** [September 18, 2014, 4:09am UTC](https://community.cesium.com/t/highlighting-indicating-selected-czml-objects/1504/1 "2014-09-18T04:09:29Z")

</div>

Hi All,

Is there a way to highlight/indicate CZML objects that are selected?

I know that for points there’s a targeting lock icon around selected points, but there doesn’t appear to be anything similar if I were to select a polygon or polyline.

- Jackie

---

<div class="post-metadata">

**Author:** ![Scott\_Hunter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_hunter/32/2006_2.png) [@Scott\_Hunter](https://community.cesium.com/u/Scott_Hunter)\
**Post date:** [September 19, 2014, 9:51pm UTC](https://community.cesium.com/t/highlighting-indicating-selected-czml-objects/1504/2 "2014-09-19T21:51:08Z")

</div>

Currently, the viewerEntityMixin doesn’t automatically compute a centroid position for graphics that are defined using a list of positions.

However, if you compute such a position yourself and define the `position` property on the entity, the selection indicator will use that position, even though the polygon doesn’t.

For example, if you look at the simple.czml file, the polygon for Pennsylvania shows a selection indicator because it has a `position` property.
