Select to view content in your preferred language

Use current location as input to Near Me widget

213
2
Jump to solution
3 weeks ago
MappyIan
Frequent Contributor

I'm creating an Experience that will be used on mobile devices to help students find nearby study spaces (buildings).  The problem I'm having is that I can't get the Near Me widget to use the users current location.  This seems like a basic requirement for the Near Me widget, so I presume it's something I'm missing or not doing right (unless this functionality doesn't exist?).

I'd like the Near Me widget to find all buildings within a set distance (100 metres) from the users current location.  The map is configured with the 'Locate' tool which works fine:

MappyIan_1-1762863884920.png

But I can't find any where of specifying that the users location should be used as the location to use in the Near Me widget.  It feels like we need another option/setting in the Inputs area for 'Users current location':

MappyIan_4-1762864065769.png

Does anyone know if this is possible in the current version of ArcGIS Online?  Or any workarounds?

0 Kudos
1 Solution

Accepted Solutions
MappyIan
Frequent Contributor

Thanks @JeffreyThompson2.  After a  bit more digging I came across this blog post, where it explains that you can use the users current location as the location to use in the Near Me widget.  It's a bit convoluted in terms of having to set up a trigger on the map to pass the location to the Near Me widget but it seems to work the first time it's pressed.  If you clear the results then press the Near Me button again, nothing happens, which seems like a bug to me.

There are already a couple of separate (but related) ideas in here:

View solution in original post

0 Kudos
2 Replies
JeffreyThompson2
MVP Frequent Contributor

Near Me isn't exactly the best name for this Widget. It's a proximate location search tool. At the moment, you could maybe hack something with another app and URL parameters to set the initial location, but there isn't something for updating it.

The next update, in Q1 2026, should include an option for live tracking the user's location. https://community.esri.com/t5/arcgis-experience-builder-ideas/add-location-tracking-widget-to-experi...

GIS Developer
City of Arlington, Texas
0 Kudos
MappyIan
Frequent Contributor

Thanks @JeffreyThompson2.  After a  bit more digging I came across this blog post, where it explains that you can use the users current location as the location to use in the Near Me widget.  It's a bit convoluted in terms of having to set up a trigger on the map to pass the location to the Near Me widget but it seems to work the first time it's pressed.  If you clear the results then press the Near Me button again, nothing happens, which seems like a bug to me.

There are already a couple of separate (but related) ideas in here:

0 Kudos