I have a web map in AGOL that I am trying to open in Field Maps and start tracking via URL parameters.
This is the syntax that I have in a QR code
When I scan the QR code with my iPhone camera, the Field Maps is launched, my organization portal sign in is opened and a pop up says "Start Location Sharing - Tracking will be started" If I click OK Tracking is enabled but the map I wanted is not loaded and I don't see any indication of the duration being set.
If I change the referenceContext to open like this
I get a screen that says "Location Sharing - Using this map requires location sharing to be turned on" I enable location sharing and then get prompted for how long to track and the correct map is opened
How can I open the map, set tracking on, and for a duration in one URL?
Thanks,
Mele
Hi @MeleKoneya ,
Just to clarify, does the map you are opening require tracking at the web map level?
Is it your goal to include sign in as part of the workflow? For example, if you are already signed in you do not need to include the portalURL in the URL.
Regards,
Colin
Hi Colin, Yes we would to require tracking at the web map level. As soon as they open a map for one of our events, it would be nice to also start tracking. The sign in portion is not as critical, but opening a specific map by id and then setting tracking on and for a duration would make it very easy for us to create a QR code which users can scan at the start of their shift.
Thanks,
Mele
@MeleKoneya It seems like there is room for improvement in this area so I will take a deeper look. I am seeing the same problems after some testing on my end. As of right now, the tracking referenceContext isnt set up to accept other parameters outside of track and trackingDuration and the open referenceContext example may be getting hung up on the tracking required screen and dropping the additional parameters afterwards.
Colin
@ColinLawrence Thank you looking into this further. I wasn't sure if I was missing something so I appreciate your feedback and testing on what I was seeing.
@MeleKoneya I logged an internal enhancement so we can hopefully look into improving this in a future release. If you would like to track this more directly I would log an enhancement with Support and I can link the two. Thanks!
@ColinLawrence Thank you for logging this as an internal enhancement. I will send a request to Esri Support to do the same. I can forward the case number when I get one.
@ColinLawrence I wasn't sure if I forwarded this to you or not, but the Esri Support Case is #03088476 and the Enhancement is #ENH-000150189 [Enhancement] Provide the ability for referenceContext=track be honored when opening the map needed in Field Map using URL.