Popup on entity?

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

Thanks in advance,
Rowan

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

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

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