ArcGIS Blog: Get to the Point (On Your Map)

394
0
10-09-2017 09:22 AM
KellyGerrow
Esri Frequent Contributor
0 0 394

Check out this ArcGIS Blog by Scott Sandusky‌ about adding links to Navigator and Trek2There , released in the September 2017 update!

Have dots on your map? Need to travel to them? No worries. Web map pop-ups are here!

Web maps are central to communicating across an organization. They are shared across core ArcGIS apps, web app templates, and custom apps. Pop-ups are a critical tool for providing useful information to web map users. That’s what makes attribute expressions (Arcadeexpressions within pop-ups) so powerful.

Today you can author your pop-up to contain a link to Navigator and Trek2There. This link uses a predefined app link specification, for example the Navigator URL scheme. So, anyone can click a point on your map, then send that point location to those apps, and then navigate to it!

Here’s an example. Try it out.

  1. Copy the below URL and email it to yourself. Then open this link on your phone.http://esriurl.com/applinkpopups

    http://esriurl.com/applinkpopups

  2. Within the map, click any point to see the pop-up. Notice that the pop-up has  hyperlinks for Navigator and Trek2There.
    Take me here Pop-up
  3. Presuming you have these two applications on your phone, when you click the “Open in Navigator” link or “Open in Trek2There” link, the x,y point location will be sent to that app.  Note: For Navigator, you need to have downloaded a map containing the area you are trying to reach, and that map must be open.
    Open in Navigator pop-up
  4. Navigator (or Trek2There) will automatically open, and have the destination loaded into it.

Next, how can you do this with your own point data? Here’s a step-by-step…

  1. First, sign into ArcGIS Online and add your point layer to your web map.
    • Note:  Your point layer must be a feature service, not a feature collection.
  2. Next, on your point layer, select “Configure Pop-up”.
    Configure Pop-up link
  3. Choose to add an attribute expression.
  4. Edit the name of the expression, and give it a name, for example, “Navigator App Link”. Save the expression name.
  5. Within the expression, delete any existing sample text, and paste in the below expression.
      • For Navigator:  “arcgis-navigator://?stop=”+ Geometry($feature).y + “,” + Geometry($feature).x
      • For Trek2There:  “arcgis-trek2there://?stop=”+ Geometry($feature).y + “,” + Geometry($feature).x

    NavAppLink Expression

  6. Test the expression and verify that the result looks like the result below. Once verified, click OK.
    NavAppLink Value
  7. Next, set the display to “A list of field attributes”. Then choose “Configure Attributes”.
    Pop-up Contents with Configure Attributes link
  8. Scroll down to the bottom of the attribute list to see the two attribute expressions you created above. Check these two attributes, and uncheck the rest. When done, click OK.
    Configure Attributes
  9. That should be it! On the Configure Pop-up dialog you may want to add a title. Once completed, click OK.
    Take me here Pop-up

Now give your web map a try! Remember that you need to have Navigator or Trek2There installed on the device where you are viewing the web map. Also, not all ArcGIS apps (like Explorer or Collector) support these web map pop-ups today. Enjoy!

About the Author
I love interactive maps and apps on the internet! The maps and apps that customers create and share on the web, make my job awesome. I'm a Product Manager with the ArcGIS Online team in Redlands, California. I am a proud graduate from Carleton University and the COGS in Canada, with research focus' in Health Geography. Originally from Bedford, NS, Canada but have spent a lot of time in Haliburton and Ottawa, Ontario. I have a passion for the outdoors and dogs.