Collector "browser" popup for links

1327
3
Jump to solution
08-17-2017 08:10 PM
JosephMootz1
Occasional Contributor


We are creating a sign inspection app in Collector. The users would like to be able to click on a sign then open Google Maps or Earth in street view mode at the point where the sign should be in case a sign is missing they can see where it should be.

We added a custom link to the Sign layer's popup in an ArcGIS Online map, but when we click on the link, Collector opens what appears to be its own proprietary "browser" popup box as shown in the first attached screenshot. In this popup, it appears to try to bring up Google Street view but it is in the wrong location and so zoomed in it is just a blur. Swiping and pinching seem to have no effect. There is a button to "Open in Safari" but when we use the standard link, it also zooms to the wrong location and in too far.

If we use the comgooglemaps URL provided for iOS by google, the "browser" popup comes up for an instant then is replaced by a message "Error Frame load interrupted."

As a work around, we link to an html file on our own server which opens the comgooglemaps link on the iPad. It still comes up in the Collector "browser" popup, but when the Open in Safari button is tapped it opens street view fine at the right location and zoom level. However, we do get a dialog box to confirm opening a popup first and another to confirm opening it in google maps, which is frustrating to have to tap the link then three dialog box buttons to get to street view.

Is there any way to bypass the Collector "browser" popup and go directly to the default browser or google maps or earth on the iPad? Survey123 links don't go through this popup why do other links?

Here are some Sample links we tried.
comgooglemaps://?center=44.0972284812,-123.110309914&mapmode=streetview

Indirect link to an html file which opens the comgooglemaps link above
http://lcmaps.lanecounty.org/ipadsvlaunch/ipadsvlaunch.htmlcenter=44.0972284812,-123.110309914&mapmo...
Direct google maps and earth links that work fine on Windows devices
https://www.google.com/maps?q&layer=c&cbll=44.0972284812,-123.110309914&cbp=11,0,0,0,0
https://earth.google.com/web/@44.0972284812,-123.110309914,246.726a,516.616d,35y,0h,99t,0r/dat


Survey123 link which does not open the Collector "browser" popup but goes right to Survey123
arcgis-survey123:///?itemID=4f0664e5286849af8feb8ce29bc545bd&field:RF_StreetAddress=3050 N DELTA HWY&field:RF_Inspector=&field:RF_MAPTAXLOT=1703180000102

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DougMorgenthaler
Esri Regular Contributor

Support for Google Maps URI schemes is now accessible in Collector 17.0.3. This is also available in custom popups if you are using custom popups using ArcGIS Online.

View solution in original post

3 Replies
DougMorgenthaler
Esri Regular Contributor

Hi Joseph-

Thanks for reaching out on this, and sharing your workflows.  Recent changes to iOS security now requires that app developers explicitly declare supported schemes, and currently Google Maps is not listed in Collector.  We'll look into adding this for the coming release.

0 Kudos
DougMorgenthaler
Esri Regular Contributor

Support for Google Maps URI schemes is now accessible in Collector 17.0.3. This is also available in custom popups if you are using custom popups using ArcGIS Online.

JosephMootz1
Occasional Contributor

We finally got a chance to try this out and it works great for us, just what we needed. Thanks for implementing this so quickly.

We chose to use the google Universal Link (https://developers.google.com/maps/documentation/urls/guide) in a custom popup. This opens a window within Collector with the street view displayed and the ability to pan and zoom and open in Safari. The link we use in the custom popup is:

<a href="https://www.google.com/maps/@?api=1&amp;map_action=pano&amp;viewpoint={latitude},{longitude}" target="_blank">Street View</a>

We tried the "comgooglemaps://" structure also, but it seems to require the Google maps ios App to be installed first to work. The universal url will open in browser or google map app.

Thanks again,

0 Kudos