Google Drive is a cloud storage service that enables you to upload, save, and share various types of files to Google servers. Google Drive can serve as a storage solution to free up space on your device, as a backup for your files, or for collaborating with others. Anyone with a Google account has free storage available on Google Drive.
You can access and add Google Drive files using New item from Content, or using Add layer from file in Map Viewer. Follow the steps to learn how to use Google Drive to add map layers, content, and media to pop-ups.
Add Google Drive CSV files to your map
Step 1 — Sign in to your ArcGIS account and open Map Viewer. There are two ways to add Google Drive CSV files as layers from the Contents (dark) toolbar.
(1) Click Add, then Add layer from file.
(2) From the Layers pane, choose Add layer from file from the Add drop-down list.
Note that a third way is to add Google Drive files is using New Item in Content. If the file contains location data, a hosted feature layer can be published, then added to your map. The steps are similar to the Map Viewer workflow described here.
Step 2 — In the Add Layers pane, click Google Drive.
Step 3 — If needed, select your Google account and sign in.
Step 4 — Select the CSV file you want to add to your map. Alternatively, you can use Search to find the file you want.
(a) – From the drop-down list of supported Google Drive files, select CSV. CSVs are filtered and presented in a list.
(b) – Choose the one you want to add to your map. The CSV will need to have lat/long coordinates or addresses to add to your map.
(c) – Click Next when finished.
Step 5 — A hosted feature layer will be created from the CSV. Select the fields that you want to include, then click Next.
Step 6 — Choose the location fields in the file used to place features on the map. Locations can be:
- Latitude/longitude coordinates
- Military Grid Reference System (MGRS) coordinates
- U.S. National Grid (USNG) coordinates
- Addresses (address matching consumes credits)
If the CSV has no location data, the file will be added as a table. Click Next to continue.
Step 7 — A hosted feature layer will be created and automatically added to your map. Specify the title, summary, tags, and other information for the hosted feature layer.
When finished, click Create and add to map.
Step 8 — Style and configure the layer as you would any other hosted feature layer.
Update hosted feature layers from Google Drive
Once a hosted feature layer is created from a Google Drive source, updating the hosted feature layer works exactly the same as for any other hosted feature layer.
Step 1 — In the Overview tab on the hosted feature layer item pages, click Update Data, then Overwrite Entire Layer.
Step 2 — Sign in to your Google Drive account. Once you sign in, the hosted feature layer will be automatically updated from the Google Drive source. Note that the file name and schema must be the same as the original file used to publish the hosted feature layer.
Add other Google Drive files to your map or contents
To add other supported Google Drive files to your map, simply select the file type from the drop-down menu. Shapefiles and geodatabases can be added as Zip Files, other supported formats include Excel spreadsheets, GeoJSON, and Google Sheets.
The file will be scanned to determine its contents. If there is no location data the file will be added as an item to My Content.
Add Google Drive images to your pop-ups
If you want to display photos or other images from Google Drive in pop-ups, you must first ensure that the image can be accessed by sharing it, then obtain the permalink URL to the image to use in the pop-up Image content block.
Step 1 — Change the General access sharing to Anyone with the link, then click Copy link.
Step 2 — Obtain the file ID from the share link. Paste the link into any text editor, the ID will be found after d/ and before /view. Below, the ID is shown in bold text.
Step 3 — Create the permalink URL. Using the file ID obtained in the previous step, paste it after id= in the URL shown below, where <file ID> is the ID obtained above.
Step 4 — Use the link above to add an image to the image content block in a pop-up.
While you need the permalink URL to display a Google Drive image within the pop-up, the Google Drive share link can be used to open the image (or other documents) in the Google Drive viewer. See the Geography Matters sample map and view the pop-up configuration.
For more information, see: