Esri / explorer-integration

Multi Language repository that contains documentation and sample code for creating custom URL schemes in Explorer for ArcGIS.
Apache License 2.0
6 stars 3 forks source link

center explorer on lat/long pulldata in survey123 #3

Open slbutler opened 7 years ago

slbutler commented 7 years ago

I have existing point data in Survey123. Crews will use this existing data to enter attributes using the Inbox. I would like the crews to be able to click on a link from the Survey123 inbox that will open a map in Explorer with the same coordinates as the point in the Inbox. I have created a note field in Survey123 that opens the map in Explorer, but I cannot get it to open at the location that corresponds with the location of the point in the Survey123 inbox.

tedrick commented 7 years ago

@slbutler - can you provide details on how you are implementing this? If opening in the Inbox, are you using the instance_name setting instead of creating the link on the form?

slbutler commented 7 years ago

Here is what I really want to do. Since I can’t do the first 2 options (as far as I know), I am trying to make the 3rd option work.

Most desirable: Have field crews open Survey123, open the Inbox, find the point they will visit that day, and have the map in Survey123 show them “live” fire hazard data from the national weather service and active fire data from several other sources that are updated daily. The crews cannot go into areas that have fire danger that day.

2nd option: Open a map in Explorer that shows the fire danger, then have a popup in Explorer that opens the existing data for the site they want to visit that day in the Survey123 Inbox.

3rd option: Open the Survey123 Inbox and find the site the crew wants to visit that day. Have a link in the survey for that site that opens the Explorer map that shows the fire danger and centers on the site they want to visit.

I have attached my form. I have been able to create a link in the form using a note field, but no matter what I have tried I can’t get the form to center on the location of the point that is open in the inbox. It works fine if I specify a certain lat/long. Please let me know if this doesn’t make sense. I don’t want the crews to have to search for the site in Survey123 and then again in Explorer if possible.

[Forest Service Shield]

Sarah L. Butler Information Technology Specialist

Forest Service Pacific Northwest Research Station

p: 503-808-2083 slbutler@fs.fed.usmailto:slbutler@fs.fed.us

620 SW Main St. Suite 400 Portland, OR 97217 www.fs.fed.ushttp://www.fs.fed.us/ [USDA Logo]http://usda.gov/[Forest Service Twitter]https://twitter.com/forestservice[USDA Facebook]https://www.facebook.com/pages/US-Forest-Service/1431984283714112

Caring for the land and serving people

From: James Tedrick [mailto:notifications@github.com] Sent: Tuesday, August 22, 2017 10:41 AM To: Esri/explorer-integration explorer-integration@noreply.github.com Cc: Butler, Sarah - FS slbutler@fs.fed.us; Mention mention@noreply.github.com Subject: Re: [Esri/explorer-integration] center explorer on lat/long pulldata in survey123 (#3)

@slbutlerhttps://github.com/slbutler - can you provide details on how you are implementing this? If opening in the Inbox, are you using the instance_name setting instead of creating the link on the form?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Esri/explorer-integration/issues/3#issuecomment-324099546, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcwtaBMNlGy24iAp7l7XRCT5dPYtqmRSks5saxKQgaJpZM4O-5Q9.

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

tedrick commented 7 years ago

Thanks. Why is option 2 not viable? That is normally the procedure we recommend for this workflow. There have been some issues with links in Explorer that were corrected with the 17.1.2 release.

Additionally, it doesn't look like the form came through - you can e-mail me directly jtedrick AT Esri.com if need be

slbutler commented 7 years ago

I am sending this to both emails and see if it will get through to 1 of them. Things are changing fast. I didn’t think it was possible to open a specific point in the survey123 inbox using a popup in Collector or Explorer. I could only get the popup to open the survey, and then had to search for the specific point in the inbox. How do I get the popup to open up my site in the inbox?

[Forest Service Shield]

Sarah L. Butler Information Technology Specialist

Forest Service Pacific Northwest Research Station

p: 503-808-2083 slbutler@fs.fed.usmailto:slbutler@fs.fed.us

620 SW Main St. Suite 400 Portland, OR 97217 www.fs.fed.ushttp://www.fs.fed.us/ [USDA Logo]http://usda.gov/[Forest Service Twitter]https://twitter.com/forestservice[USDA Facebook]https://www.facebook.com/pages/US-Forest-Service/1431984283714112

Caring for the land and serving people

From: James Tedrick [mailto:notifications@github.com] Sent: Tuesday, August 22, 2017 11:29 AM To: Esri/explorer-integration explorer-integration@noreply.github.com Cc: Butler, Sarah - FS slbutler@fs.fed.us; Mention mention@noreply.github.com Subject: Re: [Esri/explorer-integration] center explorer on lat/long pulldata in survey123 (#3)

Thanks. Why is option 2 not viable? That is normally the procedure we recommend for this workflow. There have been some issues with links in Explorer that were corrected with the 17.1.2 release.

Additionally, it doesn't look like the form came through - you can e-mail me directly jtedrick AT Esri.com if need be

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Esri/explorer-integration/issues/3#issuecomment-324112693, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcwtaDUA_Y0bJi2miYrMfgJxpSIiQgplks5sax35gaJpZM4O-5Q9.

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

slbutler commented 7 years ago

I’m not sure I made it clear in my first email that I am only using existing data, not creating new points. I just want the crews to update some fields for existing points. And I don’t want them to be able to move the points. And I want to enforce required fields. This is why I want to use Survey123 and not Collector. Sorry for any confusion.

[Forest Service Shield]

Sarah L. Butler Information Technology Specialist

Forest Service Pacific Northwest Research Station

p: 503-808-2083 slbutler@fs.fed.usmailto:slbutler@fs.fed.us

620 SW Main St. Suite 400 Portland, OR 97217 www.fs.fed.ushttp://www.fs.fed.us/ [USDA Logo]http://usda.gov/[Forest Service Twitter]https://twitter.com/forestservice[USDA Facebook]https://www.facebook.com/pages/US-Forest-Service/1431984283714112

Caring for the land and serving people

From: Butler, Sarah - FS Sent: Tuesday, August 22, 2017 11:40 AM To: 'Esri/explorer-integration' reply@reply.github.com Cc: 'jtedrick@esri.com' jtedrick@esri.com Subject: RE: [Esri/explorer-integration] center explorer on lat/long pulldata in survey123 (#3)

I am sending this to both emails and see if it will get through to 1 of them. Things are changing fast. I didn’t think it was possible to open a specific point in the survey123 inbox using a popup in Collector or Explorer. I could only get the popup to open the survey, and then had to search for the specific point in the inbox. How do I get the popup to open up my site in the inbox?

[Forest Service Shield]

Sarah L. Butler Information Technology Specialist

Forest Service Pacific Northwest Research Station

p: 503-808-2083 slbutler@fs.fed.usmailto:slbutler@fs.fed.us

620 SW Main St. Suite 400 Portland, OR 97217 www.fs.fed.ushttp://www.fs.fed.us/ [USDA Logo]http://usda.gov/[Forest Service Twitter]https://twitter.com/forestservice[USDA Facebook]https://www.facebook.com/pages/US-Forest-Service/1431984283714112

Caring for the land and serving people

From: James Tedrick [mailto:notifications@github.com] Sent: Tuesday, August 22, 2017 11:29 AM To: Esri/explorer-integration explorer-integration@noreply.github.com<mailto:explorer-integration@noreply.github.com> Cc: Butler, Sarah - FS slbutler@fs.fed.us<mailto:slbutler@fs.fed.us>; Mention mention@noreply.github.com<mailto:mention@noreply.github.com> Subject: Re: [Esri/explorer-integration] center explorer on lat/long pulldata in survey123 (#3)

Thanks. Why is option 2 not viable? That is normally the procedure we recommend for this workflow. There have been some issues with links in Explorer that were corrected with the 17.1.2 release.

Additionally, it doesn't look like the form came through - you can e-mail me directly jtedrick AT Esri.com if need be

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Esri/explorer-integration/issues/3#issuecomment-324112693, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcwtaDUA_Y0bJi2miYrMfgJxpSIiQgplks5sax35gaJpZM4O-5Q9.

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

IsmaelInRedlands commented 7 years ago

@BrentPierce I was able to reproduce the problem. It looks like there may be a bug in Explorer, may be in the parsing of the custom url parameters. I tested this on my iPhone6 on iOS 10.3.3

This URL straight from the help does not center at the provided coordinates:

arcgis-explorer://?itemID=2adf08a4a1a84834a773805a6e86f69e&center=43.656789,-70.278083

Specifically for Survey123, I created this sample test. The link launches Explorer and opens the web map, but the center parameter is ignored:

Open Explorer and Center.xlsx

I also tested the scale parameter and that one worked well. It is only center that seems to be causing problems.

BrentPierce commented 7 years ago

You will need to add a scale parameter ... updating the readme now try something like:

arcgis-explorer://?itemID=2adf08a4a1a84834a773805a6e86f69e&center=43.656789,-70.278083&scale=20000

tedrick commented 7 years ago

@slbutler - thanks for clarifying on the workflow. You're right, we currently don't support specifying editing via the url scheme.

IsmaelInRedlands commented 7 years ago

@BrentPierce Updated XLSFile to include scale & center parameters. Working well now. Thanks.

Open Explorer and Center.xlsx

@slbutler @tedrick

Here is I think you could go about it:

BrentPierce commented 7 years ago

@IsmaelInRedlands ... Great we also update the doc to include this parameter and a brief discussion of it's usage