NearMe widget (Exp Builder) - use location from Locate on Map?

369
2
Jump to solution
11-03-2023 08:25 AM
ctalleygreenville
New Contributor III

Hello all,

On the NearMe widget, is there a way for the "input location" in the widget to use the x,y coordinate from the "Locate" button on the Map?  I feel like this should be possible but I am not seeing how.

Another way of phrasing the question - If a user is on a device and has the Locate tool being utilized to show their location on the map, can this location be used automatically as the input location for the NearMe widget?

locate_tonearme_input.JPG

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Regular Contributor

There is no direct support for using the Locate button to trigger Near Me, but the Search widget has the Use Current Location option under General Search Option and the search output can trigger Near Me.

JeffreyThompson2_0-1699025701899.png

Another possible solution is the new Show Popup Open Feature Selection combined with the Set Location Data Action. If it works this would open a popup with a button to trigger Near Me, but I'm not sure if the Locate button will trigger the popup.

GIS Developer
City of Arlington, Texas

View solution in original post

2 Replies
JeffreyThompson2
MVP Regular Contributor

There is no direct support for using the Locate button to trigger Near Me, but the Search widget has the Use Current Location option under General Search Option and the search output can trigger Near Me.

JeffreyThompson2_0-1699025701899.png

Another possible solution is the new Show Popup Open Feature Selection combined with the Set Location Data Action. If it works this would open a popup with a button to trigger Near Me, but I'm not sure if the Locate button will trigger the popup.

GIS Developer
City of Arlington, Texas
ctalleygreenville
New Contributor III

Thank you Jeffrey for the quick reply.  I knew I was forgetting something and you reminded me - the Use Current Location Option.  I will use it.

 

0 Kudos