Customize featurelayer to override method to get source data

147
0
07-12-2021 01:43 PM
SamuelShyu
New Contributor

   We are using client side data to populate source of  a featurelayer. However, our client side data set is too large so that we can't give all the data to the source at one time. We need to query the client side data based on the map extent, then populate the source of the feature layer.

   Is there anyway to customize the featurelayer to override the method when it tried to get the data when map extent changes.  Whenever the featurelayer needs to get the data because of the map extent changes or a new tile included, we can intercept the  request and use our customized method to get the client data in the extent of tile.   We prefer to use this deep customized approach instead of listening to the map view extent changes every time.

 

     Thanks!

     Samuel

   

0 Kudos
0 Replies