Select to view content in your preferred language

Near Me Widget doesn't work with Client-Side Querying

411
4
04-08-2024 03:07 PM
BrandonPrice1
Occasional Contributor

My app has a near me widget. When I enable client-side query to make it run faster, the near me widget runs before the services can even load resulting in a 'Not Found' response when using it. Any ideas on what can be done to resolve this?

BrandonPrice1_0-1712614022866.png

 

 

0 Kudos
4 Replies
AzizaParveen1
Esri Contributor

Hi @BrandonPrice1 ,

What type of layers do you have in your service? If you have lot of layers and have polygon and line layers, it takes a bit to draw all of them. Is the analysis finishes before drawing the layers is the problem? Could you please share a video of your workflow with us for better understanding?

Thanks

 

0 Kudos
BrandonPrice1
Occasional Contributor

Hi Aziza,

This is the app: https://experience.arcgis.com/experience/9626fdbc6ffc406fa4308419c19c9fa4/. It is public. I will follow up with a video.

-Brandon

0 Kudos
BrandonPrice1
Occasional Contributor

@AzizaParveen1 , here is the video. Looks like it's running before the layers load. Can a setTimeout be added to the back end?chrome-capture-2024-4-22.gif

0 Kudos
BrandonPrice1
Occasional Contributor

@AzizaParveen1 , Hi. The near me can be tested by searching the address 436 S Topanga Bl.

0 Kudos