show point inside rectangle

Hi everyone!

I have X,Y pairs of coordinates of points in database.

I'm trying to achieve that only points which are inside camera rectangle are visible.

Two questions:
1. Is it possible to recieve coordinates of camera rectangle and how?
2. Is there any function/method which return only points which are inside geometry (ex. rectangle or circle)?

Thank you in front!

Hello,

I don’t believe either of these are currently implemented in Cesium. Someone in this post has some suggestions for a workaround for #1: https://groups.google.com/d/msg/cesium-dev/lZAr0L6Cq9s/dWyS4W8rAQAJ

#2 Shouldn’t be difficult to implement for a rectangle. You could just compare the lon/lat positions with the north/south/east/west edges of the Rectangle.

Best,

Hannah