# How to not auto centralize viewer selectionIndicator poistion for an entity with label, billboard and polyline?

**URL:** <https://community.cesium.com/t/how-to-not-auto-centralize-viewer-selectionindicator-poistion-for-an-entity-with-label-billboard-and-polyline/8746>\
**Category:** CesiumJS\
**Created:** [October 13, 2019, 7:45am UTC](https://community.cesium.com/t/how-to-not-auto-centralize-viewer-selectionindicator-poistion-for-an-entity-with-label-billboard-and-polyline/8746 "2019-10-13T07:45:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 18, 2019, 1:56am UTC](https://community.cesium.com/t/how-to-not-auto-centralize-viewer-selectionindicator-poistion-for-an-entity-with-label-billboard-and-polyline/8746/2 "2019-10-18T01:56:08Z")

</div>

The entity selector uses the entity’s bounding sphere to figure out where it should go. This is where the bounding sphere for the entities is computed:

> <https://github.com/CesiumGS/cesium/blob/6361718743dba781d01bdf12118fa0458d9f3755/Source/DataSources/DataSourceDisplay.js#L304>

And this is where the viewer sets the indicator to be that computed bounding sphere center:

> <https://github.com/CesiumGS/cesium/blob/6361718743dba781d01bdf12118fa0458d9f3755/Source/Widgets/Viewer/Viewer.js#L1581-L1593>

You could override that behavior in the source code, or expose a function in the API to expose a way to customize/override this (and it would be great to make a pull request contribution back into CesiumJS)!

You also just disable the selection indicator and listen for the selectedEntityChanged event on the viewer to detect when a selectedEntity has change and create your own indicator, which might be the easiest approach to customizing it in your application.

Let me know if this helps!

---

_[View the full topic](https://community.cesium.com/t/how-to-not-auto-centralize-viewer-selectionindicator-poistion-for-an-entity-with-label-billboard-and-polyline/8746)._
