Skip navigation
All Places > GIS > Web GIS > ArcGIS Online > Blog
1 2 3 4 Previous Next

ArcGIS Online

109 posts

The ArcGIS Online team is working on collecting some feedback about how teams use the home page in organizations. We are looking for feedback from customers who have experiences creating and using home pages in the organization. If you are interested in sharing your feedback please fill out the survey below. It should take between 5 and 10 minutes and will be very valuable in helping us improve its appearance and functionality.

Hello all 


I just wanted to post this dashboard I made to replace a travel blog for a solo bike tour I did around the Great Lakes. 

There are many reasons you might need to access the item ID for content items within ArcGIS Online. The item ID is the basis for many automation and mapping techniques used within the ArcGIS REST API, the ArcGIS JavaScript API, and ArcGIS API for Python. The item ID is also a great way to search for items within the ArcGIS platform, because it will always bring you to the exact item you need.


But where can you easily find this item ID?


The easiest and fastest way to access the ID is from the ArcGIS Online content item details page. For example, here is the item details page for a web map named "Population Not in the Labor Force"

The item details page for an item contains the metadata about an item


The item ID may not be immediately apparent, but its actually in a very easy place to find. If you look at the URL, you can see the ID at the end after ?id=


The item ID is in the URL of the ArcGIS Online item


The above example shows a web map item in ArcGIS Online. However, if you wanted to find the item ID for one of the layers in the map, you can also do that from the item details page. Find the Layers section, click on the layer of interest, and view the item ID in the address bar.


Item ID for a layer in a web map


Easy tip: if you double click the ID within the URL, it will highlight just the ID (as seen in the gif above)

In ArcGIS Online, you can store images as attachments with feature layers. By default, the attachment is shown in the pop-up as a hyperlink. With just a few lines of Arcade Expressions, you can configure the pop-up to display the actual image without requiring your viewers to click on the link.


With the March 2019 release of ArcGIS Online, you can now upload geotagged photos to create a point feature layer of each image's location. This blog will outline the process to create the layer and display your geotagged photos in the pop-up. Here is a video showing how to add photos and edit the pop-up (step-by-step instructions are found below):



After uploading your images, the pop-up includes a hyperlink that looks something like this:

This image shows the default pop-up with a hyperlink to the image attachment.


This pop-up configuration workflow will result in the photo displaying in a pop-up like the image below:

This image shows a custom pop-up with a photo of pink flowers found on the trail.


To achieve this workflow, there are two steps to the process:

  1. Calculate the attachment ID for each feature
  2. Configure the pop-up to display the attachment URL as an image


Steps to view attachments as photos in your web map pop-up:

Part 1:  Calculate the attachment ID   

Note: Sometimes this is not required if the attachment IDs match the feature IDs. There are some cases where these may match, but in most cases these IDs will be different if the data is edited after publishing or in cases where attachments are added after publication (like inspection data when using Collector). 


1. Upload your geotagged images to ArcGIS Online as a feature layer. Click here to download a sample zipped folder of images.

2. Make sure your layer is shared with the public.

3. Open the layer in a web map and save the web map.

3. Open the layer table and add a CountAttachments field and calculate it with the Arcade Expression:

4. Filter the layer to show:

      CountAttachments is greater than 0
5. Add a new field called AttachID and calculate it with the Arcade Expression: 
6. Remove the filter.


Part 2:  Create the Pop-up   

1. Click on a point in the map to view the pop-up, and open the hyperlink.

2. Return to the previous tab that shows your web map. Select More Options (the three dots under your layer name in the Content tab), then click Configure Pop-up.

3. Under Attribute Expressions, click the ADD button. 

4. In the Expression builder window, fill in the following logic seen below with the text from your hyperlink URL. The Arcade Expression builds an on-the-fly image URL for each record in your layer using the unique Object ID and attachment ID (calculated in Part 1). 

Note: This is an example of what an image attachment URL looks like: The first 7 in red is the Object ID and the second 7 in blue is the attachment ID

      var Part1 =       ""
      var ObjectID = $feature.OBJECTID
      var Part2 = "/attachments/"
      var AttachID = $feature.AttachID
      When($feature.CountAttachments > 0, Part1 + ObjectID + Part2 + AttachID, null)



5. Under Pop-up Media, click ADD then choose Image. Edit or remove the title and caption. Under URL, click on the plus sign and select your Arcade Expression. After you add it, it will look something like {expression/expr0}. Additionally, you can edit the pop-up title and additional pop-up content. You can also uncheck the "Show feature attachments as links". 


Click here to view a web map example of this in action.

This image shows a web map with a custom pop-up displaying a photo of pink flowers found on the trail.


This is a similar workflow to the popular tool and blog written by Jake Skinner.


This workflow will get you up and running to display images in URLs in most places but does have some limitations to be aware of:

  • Calculate field is not dynamic. When new features are added, you will need to re-run the field calculation in Part 1.
  • The field calculation only takes the first attachment listed, so displaying multiple images in a single pop-up isn't supported through this workflow.
  • The layer needs to be public to access attachments.


We are sharing this workflow to help you display your images in pop-ups as quickly as possible with Arcade, but want you to know that there is more to come. In future releases, we are working to make it easier to display attachments as images. You can see a sneak preview of this work in the 4X JS API. Check out the pop-ups in the Media Map template to see this implementation in a configurable app where it isn't required to do additional configuration to display these images.


Stay tuned for more updates and share and discuss your examples and improvements to this code.


Generate a Token

Posted by KGerrow-esristaff Employee Mar 16, 2019

In order to access the history log, an administrator token must be appended to your request. You can obtain a token in a few ways. The following log includes two quick ways to grab this token. 

Note. As these are administrative tokens, please don't share your token in the forums. These can potentially be used in malicious ways if the wrong person obtains your token. 

Option 1: Generate a token using postman

1. Download or open postman  (It's free)

2. Click the +New button to create a new request

3. In the new tab, set the following:

4. Click on Body and add the following parameters as Key/Value pairs:

  • username: Your administrator username (case sensitive)
  • password: Your password
  • referer
  •   f : json

5. Click Send and copy the token in the response below for use in requests

Option 2: Use Developer tools

1. Open developer tools in your browser  ( In chrome, Menu>more tools> Developer tools)

2. Sign into with your administrator credentials

3.  In the developer tools click on network and type 'self' into the filter box

4. Click on the first url, click header tab and scroll to Query String Parameters(the very last section).

5. Copy the token value to use in requests

The History endpoint of the REST API is a great tool to dig into information about events occurring in your organization. Although you easily download a comprehensive CSV of events as an administrator in ArcGIS Online, the REST API, provides the option to customize the data returned and to ask more specific questions. For an example of how to use the history CSV, check out this blog: 


For this blog I am going to outline the query and results about a specific member of my ArcGIS Online organization.


Scenario: It’s time for Karate_Kelly’s year end review. She wants to prove to her boss that she has been busy creating and managing content in the organization. Using the History API, She’ll query all of the events that she has initiated in 2018.


Detective Steps:

  1. Formulate the Query

Url: https:/


all=true – returns events for all members in the organization

start=0 – Starts at the first record

num=10000 – largest amount of events returned (requires csv format)

f=csv – Returns result in a csv

sortOrder=asc – information output in ascending order

token = “6hVsODGfBpk5X_hGc0MOrnxmddIk4bL4hP8FyOAxM0QxL3VEw86iTdB” – admin token required

fromDate =2018-01-01 – start of date range

actors= Karate_KElly – events to be returned (Note, usernames are case sensitive, so if you hit a key by accident while creating your username, check the casing just to be sure... #Karate_KEllyIsNotAMistake)


Sample Url constructed:

  1. Submit the request and view the resulting CSV
  2. Perform analysis or use pivot tables to provide insight into actions


ActionCount of Actions
Add Users7
Failed Login15
Remove Users1


Tracking my events by Month:

# of Actions10185727427614829149129101261445

Test: When did I go on Summer vacation last year?


This is a neat way to look at your actions and your organizations members actions over time.


*Note. Only available in ArcGIS Online


Generate a Token

The History endpoint of the REST API is a great tool to dig into information about events occurring in your organization. Although you easily download a comprehensive CSV of events as an administrator in ArcGIS Online, the REST API, provides the option to customize the data returned and to ask more specific questions. For an example of how to use the history CSV, check out this blog: 


For this blog, I am going to explore the needed queries to export information about login events for a specific organization. To use specific parameters with this API currently, the csv format must be used due to: BUG-000120745. This is planned to be addressed in a future release, but the CSV is a great format for large amounts of information.


Scenario: Andy the Administrator wants to understand which of his users have logged into ArcGIS Online and from which apps in February 2019. He has a sneaking suspicion that his employee Oreo J. Sampson doesn’t know his password but is afraid to ask for it to be reset as he asks every single day. Andy is going to verify the login information of his organization to verify


Detective Steps:

  1. Formulate the query:



all=true – returns events for all members in the organization

start=0 – starts at the first record

num=10000 – largest amount of events returned (requires csv format)

f=csv – returns result in a csv

sortOrder=asc – information output in ascending order

token = “6hVsODGfBpk5X_hGc0MOrnxmddIk4bL4hP8FyOAxM0QxL3VEw86iTdB” – admin token required

fromDate =2019-02-01 – start of date range

toDate=2019-02-28 – end of date range

actions= failedlogin – events to be returned


Sample Url constructed:<token>

  1. Submit the request and view the resulting CSV (Failed Login)

Note that some fields have been changed to anonymize data for publication)



  1. After inspecting the CSV, you can notice that Oreo failed to login on February 1st and didn’t fail again.


  1. To find out if Oreo ever successfully logged in, just add login to the actions parameter to receive failed login and login events:,login&sortOrder=asc&toDate=2019-02-28&fromDate=2019-02-01&num=10000&f=csv&token=<token>


Reading the output of the resulting CSV, I can see that Oreo eventually logged into ArcGIS Online using ArcGIS Online and ArcGIS Desktop.


With these results, Andy can understand who has been logging into the organization, successfully, unsuccessfully and from which app.


A note about login actions:

A login action is recorded everytime a successful call is made to the oath2 or generate token login. If you click “Keep me signed in” on the ArcGIS login form then the token will be valid for 2 weeks; the /signin endpoint will not be called and no record will be added to the history log.


*Note. Only available with ArcGIS Online


Generate a Token

On the evening of March 19, we plan to update ArcGIS Online. Here are five new capabilities to anticipate:


  • Encourage viewers to explore your data using the upcoming Interactive Legend configurable app. This app enables viewers to not only read the legend but also touch the data. Giving viewers the opportunity to turn layers on and off, highlight, and filter data through the map legend helps them recognize what is occurring in the map.

Interactive Legend Configurable App


  • When searching for items, you will notice a new location filter. Specify a place or region of interest and see only items for that location. This filter works by referencing map extents (geographic boundaries for items). Also, item search will be more efficient and flexible. For example, suggested and partial word searches will be supported for titles.

New Location Filter


  • Bring your own or publicly shared maps, layers, or apps together using the upcoming Category Gallery configurable app. This app is an excellent way to organize your items into categories and allow viewers to interact with your items. The categories give viewers the flexibility to filter and find relevant items.

Category Gallery Configurable App


  • You will be able to create feature layers from photos that contain location data. Simply upload a file of JPEG photos with geotags and publish as a hosted feature layer. Use the layer in your maps and apps.


  • Group owners and managers will be able to help users quickly find what they are looking for by specifying the type of items (such as apps or maps) that display by default on the group's content and overview tabs.


Please note that all planned updates are subject to change. A comprehensive list of implemented changes will be provided in our What's New email, blog, and documentation. Visit the ArcGIS blog to learn more about what's coming and new.


Sign up to receive What's New emails

FYI, great blog by Molly Zurn which discusses the new ArcGIS Online Implementation Guide (PDF) gives administrators a quick overview of essential tasks and best practices for setting up ArcGIS Online.


ArcGIS Online Implementation Guide 



This guide is useful to anyone who’s just received an ArcGIS Online subscription and is seeking straightforward guidance on how to make and manage maps, data, and users within the organization.



With the December update of ArcGIS Online, the ability to reference other layers using Arcade Expressions in Pop-Ups was introduced. This blog is going to outline a quick example about how to create a simple intersect expression and display the results in a Pop-Up.


In this example I have used 4 layers marked as authoritative in ArcGIS Online by  Miami-Dade County, Florida. I want to display the Elementary, Middle and High School names which intersect with building footprints in a single pop-up. I have three layers of School Attendance Boundaries which identifies a specific school boundary which overlaps with many building footprints. The building footprint layer contains geometry information but no information about the infrastructure or zones that intersect with the building.

This Web Map shows examples of the information available in these layers in 4 separate layers.

Unedited Pop-ups


Using the new Arcade FeatureSet functionality, I was able to include the Elementary, Middle and High School names in the building footprint pop up in this web map


feature set


Here are the steps to set up this simple intersecting Arcade Expressions to include in a pop-up.

  1. Add all the desired layers with information that you would like to see to a web map.

  2. Select the layer that should display the pop-up information (Building Footprint)

  3. Inspect the School Attendance Boundary layers to identify the fields that you would like to display in the Building Footprint layer Name)

  4. Select Configure Pop up and navigate to the Add Attribute Expressions

  5. Create the expression for each layer.

    1. Create a variable that returns the FeatureSet of intersecting feature attributes.

      var intersectLayer =Intersects(FeatureSetByName($map,"Elementary School Attendance Boundary"), $feature)

      Expression Values Explained:

      var intersectLayer – specifies the intersecting features variable name

      Intersects – specifies the geometry function one feature intersects the geometry of the other specified layer.

      FeatureSetByName  Creates a FeatureSet from a Feature Layer based on its name within a map or feature service

      $map,"Elementary School Attendance Boundary"– identifies that the feature set is a layer named Elementary School Attendance Boundary, within the web map.

      $featureis the feature that is being selected in the Building Footprint layer that provides the initial spatial information.


         b.   Loop through the feature set created and return a specific field from the feature set:


for (var f in intersectLayer){

    return f.NAME



6. Once all expressions are created, add them to the pop up configuration.

7. Disable the pop ups and potentially the visibility from the School Attendance Boundary Layers (Not required, but I think it cleans up the display,

8.Check out your pop up with information from intersecting layers.


There will be more documentation, blogs and examples coming out in the next week, but try out this quick sample with simple intersecting layers and let us know if you have questions.


Entire expression for a single high school name:


var intersectLayer =Intersects(FeatureSetByName($map,"Elementary School Attendance Boundary"), $feature)

for (var f in intersectLayer){
return f.NAME

ArcGIS Online User Types

User Types

Esri evolved named user levels into User Types to provide additional flexibility when licensing ArcGIS Online. There are five User Types: Creator (formerly Level 2), Viewer (formerly Level 1), Field Worker, Editor, and GIS Professional.

Explore User Types


Arcade in Pop Up

Enhanced Arcade Expressions in Pop-ups

Perform calculations and bring information from overlapping layers into one pop-up using Arcade. Create cohesive pop-ups that display information about fields that have intersecting locations rather than having your users toggle through multiple pop ups in a single location. 

Learn to Configure


3D Slice Tool

3D Slice Tool

Reveal hidden data in building interiors or underground using the new Slice tool. This tool lets you inspect features in a building or display geological data that is under the earth's surface.


Vector Basemap Italian

Vector Basemaps: New Languages 

In addition to Chinese (traditional), English, French, German, Japanese, Russian, and Spanish, the Esri Vector Basemaps are now available in Arabic, Chinese (simplified), Italian, Korean, Polish, and Portuguese (Brazilian).


Compare Configurable App

New Configurable App

Use Compare, the newest configurable app, to compare your maps or scenes. The two views can be linked to synchronize their extents, legends, and pop-ups.



Reduced Price: Simple Routing

The cost of simple routing was reduced to 0.005 credits per route. For example, generating 10,000 routes only costs 50 credits.


All the Details

This is only an introduction to what’s new in ArcGIS Online. Explore all the new features in our What’s New blog.

Learn about all the great new enhancements to ArcGIS Online in this blog by Bernie Szukalski,


What's New in ArcGIS Online (December 2018)



Get more details in the What's new help topic, What's new—ArcGIS Online Help | ArcGIS 



Interested in learning about the different Apps available in the ArcGIS Platform? Checkout the ArcGIS Apps collectible product trading cards (one for each app) to learn more about the various apps to meet your business workflows.


ArcGIS Apps Trading Card Set (collect 'em all)




ArcGIS Online will be updated the evening of December 5th PST. There is a lot of useful functionality packed into this update, including some user interface updates, licensing changes and changes to administrative workflows. This article will describe the upcoming changes to the look and feel of ArcGIS Online while this related blog reviews concepts about the next evolution of licensing, User Types. We understand that changes to workflows and the look and feel of software that you use daily can be disruptive. For this reason, we want to provide you with a quick preview of the updates, so you are prepared and excited for the morning of December 6th.


Check out the details in this ArcGIS Blog and comment below:

Prior to the December 2018 update of ArcGIS Online, capabilities and identity were determined by user levels (Level 1 and Level 2), allowing ArcGIS Online members to view content or have access to all capabilities within ArcGIS Online. Our user community had asked for a wider variety of capabilities and apps. To meet these requirements, ArcGIS is evolving levels to user types. User types are a combination of identity, capabilities and apps that align with the needs of typical members in an organization.


Learn more by reading this ArcGIS Blog