Retrieve features from FeatureLayer using filter parameters in url

244
1
Jump to solution
12-07-2020 09:00 AM
Namibian
New Contributor II

HI,

I have a hosted FeatureLayer that I want to include on my map. However, there are about 50k features.

Is there a way that I can specify which features to retrieve in the url I use the load the portalItem?

 

Thanks!

0 Kudos
1 Solution

Accepted Solutions
Namibian
New Contributor II

Nevermind. I think I found the solution. When specifying the url, also define a SQL expression in the 'definitionExpression' property of the new FeatureLayer({}) options.

View solution in original post

0 Kudos
1 Reply
Namibian
New Contributor II

Nevermind. I think I found the solution. When specifying the url, also define a SQL expression in the 'definitionExpression' property of the new FeatureLayer({}) options.

0 Kudos