# Popup on entity?

**URL:** <https://community.cesium.com/t/popup-on-entity/4054>\
**Category:** CesiumJS\
**Created:** [April 28, 2016, 4:51am UTC](https://community.cesium.com/t/popup-on-entity/4054 "2016-04-28T04:51:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwinsemius](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rwinsemius](https://community.cesium.com/u/rwinsemius)\
**Post date:** [April 28, 2016, 4:51am UTC](https://community.cesium.com/t/popup-on-entity/4054/1 "2016-04-28T04:51:37Z")

</div>

Gday all,

Im trying to work out if there is a simple way to have a popup appear on click of an entity similar to what you'd get in leaflet.

Obviously there is infobox but this appear to be limited to 1 and isn't in the location of the entity that you've just clicked. Ideally I want to be able to click on a marker and have a popup display over it and have multiple open at the same time so I can compare markers.

I've found reference to this approach and was wondering if this was still the best way...  
[https://groups.google.com/forum/#!msg/cesium-dev/hP5wjNeOWzo/dq7frk-\_AwAJ](https://groups.google.com/forum/#!msg/cesium-dev/hP5wjNeOWzo/dq7frk-_AwAJ)

Thanks in advance,  
Rowan

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [April 28, 2016, 12:22pm UTC](https://community.cesium.com/t/popup-on-entity/4054/2 "2016-04-28T12:22:02Z")

</div>

Hello Rowan,

The infobox is the only option we have right now. We’ve talked about creating a balloon popup display, but I’m not sure how long it would be until we implement something like that.

That code sample from the other forum post is a good place to start if you want to implement your own display.

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![ianwalberg](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ianwalberg/32/3476_2.png) [@ianwalberg](https://community.cesium.com/u/ianwalberg)\
**Post date:** [April 28, 2016, 1:33pm UTC](https://community.cesium.com/t/popup-on-entity/4054/3 "2016-04-28T13:33:23Z")

</div>

Hannah,

This does work but the pop up does not quite work as expected as it still shows when the globe is rotated and the popup is behind the globe.

Thanks

Ian

---

<div class="post-metadata">

**Author:** ![rwinsemius](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rwinsemius](https://community.cesium.com/u/rwinsemius)\
**Post date:** [April 29, 2016, 12:23am UTC](https://community.cesium.com/t/popup-on-entity/4054/4 "2016-04-29T00:23:58Z")

</div>

Gday Ian,

It looks like you could jam in a quick check to see if the lat lon is still visible, and if not apply a css class to hide the div  
[https://groups.google.com/forum/#!topic/cesium-dev/z8HSjI2YGww](https://groups.google.com/forum/#!topic/cesium-dev/z8HSjI2YGww)
