Watch for Symbol in View

478
1
Jump to solution
02-02-2021 01:00 PM
developerarce
New Contributor III

There are many Accessors and I am wondering what would be the correct way to handle watching for when a Symbol or some Path comes into the View. (I currently have a GEO JSON layer that renders a Path Symbol)

For example, if there are 5 Symbols within the View and I zoom in so there are only 3, can I watch an Accessor to know which 3 are in the View?

My immediate idea is to compare the location of the Path to the area of the View, but not sure if there is a better way.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
developerarce
New Contributor III

Found out that you can get the size of the view and utilize the webMercatorUtils to convert to Lat/Long. Then you can compare against data you may have to determine if that data should be shown.

View solution in original post

0 Kudos
1 Reply
developerarce
New Contributor III

Found out that you can get the size of the view and utilize the webMercatorUtils to convert to Lat/Long. Then you can compare against data you may have to determine if that data should be shown.

0 Kudos