0% found this document useful (0 votes)
173 views10 pages

AGOL Photo Tutorial

This document provides a tutorial for displaying pictures in ArcGIS Online pop-ups using free services like Google Drive. It involves gathering data and photos, formatting the photos, uploading them to Google Drive folders, extracting the photo links, adding the links to the data table, importing the data to ArcGIS Pro/Desktop to create a shapefile, uploading the shapefile to ArcGIS Online, and configuring the pop-up properties to display the photos. The tutorial allows linking photos stored on Google Drive to map features in ArcGIS Online for visualization in pop-ups.

Uploaded by

Muyiwa Adeniyi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views10 pages

AGOL Photo Tutorial

This document provides a tutorial for displaying pictures in ArcGIS Online pop-ups using free services like Google Drive. It involves gathering data and photos, formatting the photos, uploading them to Google Drive folders, extracting the photo links, adding the links to the data table, importing the data to ArcGIS Pro/Desktop to create a shapefile, uploading the shapefile to ArcGIS Online, and configuring the pop-up properties to display the photos. The tutorial allows linking photos stored on Google Drive to map features in ArcGIS Online for visualization in pop-ups.

Uploaded by

Muyiwa Adeniyi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

ASSUMPTIONS

1. Data is already available and preferably in csv, xlsx or xls format.


2. Photos are also available and stored in a folder.
3. You have an ArcGIS account
4. You have ArcGIS Desktop (ArcMap) installed on your PC
5. You have a Google account
6. You MS Excel installed on your PC
SIMPLE TUTORIAL FOR DISPLAYING PICTURES IN ArcGIS Online (AGOL) POP-UP USING FREE
SERVICE LIKE GOOGLE DRIVE

1. After gathering and cleaning your data with the necessary features you want, create two
extra columns for photo links (one for the thumbnail pic and another for actual pic- e.g
Photo_TH and Photo highlighted in image below). Make sure your photos are well labeled
so that they can be easily linked to the features they are meant for.

2. To create a thumbnail pic size that is accepted by AGOL pop-up (200 pixels by 150 pixels)
you can use an app like Photo Resizer Expert that can batch convert. Follow steps/guidelines
in app.
3. After creating the thumbnail version of your photos/pics, login to your google drive and
create two folders – one for the thumbnail pics and one for the actual pics. Drag and drop
the thumbnail pics created with the app into the thumbnail folder and the actual pics into
the actual pics folder.
4. Make sure you make the folders public sharing. Steps below
a. Right Click the folder on Google Drive.
b. Click the Share button option in the drop-down menu.
c. Click Sharing settings.
d. Click Advanced in the bottom right corner of the sharing box.
e. Click Change....under Who has access.
f. Choose On - Public on the web and click Save.
5. Now your pics are publicly accessible.
6. To extract all the links to pics in both the thumbnail and actual pics folder, you need to
download and install an add-on for google sheets. Follow the steps here on how to use
the Photo Gallery by Awesome.
7. When that is done you should have two tables/sheets, one each for thumbnail links and
actual picture links. Download and save tables as csv or xlsx. Sample below.
8. Copy the links to the actual pictures to the Photo column in table where your data resides.
Remember at the beginning, I stated that the pictures should be well labeled so as to easily
connect the google drive links created to main data attributes table/sheet. Sample below.

9. To copy the links the for the thumbnail photos to be shown in the pop up, open the table
created by the Photo Gallery by Awesome from the thumbnail folder and follow the steps
below.
10. The URL to be used in pop-up configuration must be the direct image URL. However, this
URL is not given directly by Google Drive. So, for the pictures/photo to show in the AGOL
pop-up, you have to replace the given URL. Example of URL given by google drive is
https://drive.google.com/file/d/1o1UheL_mCAXdpuWOrR4zqwKd6x9MrdY/view?usp=sh
aring
11. Replace <image_id> in this URL with your image id:
https://drive.google.com/uc?export=view&id=<image_id>. Image ID highlighted in red
above.
12. I can imagine you have hundred or thousands of pictures, copying and pasting will take
forever, so you can use this simple formula in MS Excel. In the thumbnail sheet opened,
copy this link (https://drive.google.com/uc?export=view&id=<image_id>) into a new
column.
a. Then in another column next to the column you just pasted the link, paste this
formula =REPLACE (D3, 44, 54, B3). This simply means “Replace ten characters,
starting with the 44th, from cell D3, with the contents of cell B3. Please remember
out tables and columns might vary, please adjust as needed.
13. Repeat the process in step 8, except this time, copy the links created in to the Photo_TH
column.
14. Save you file as a *.csv file.
15. You can import your csv file into ArcGIS Pro or ArcGIS desktop to create a shapefile which
will then be imported into AGOL. In this tutorial we will be using ArcGIS desktop (ArcMap
10.7.1)
16. First step is to add the .csv file to ArcMap

17. Right-click the added CSV and select “Display XY Data…” from the drop-down menu

18. Add the X and Y coordinate points and choose the suitable coordinate system
19. A new feature event is created. Right-Click the feature event, go to data and select export
data.

20. Select a proper name and location for the newly created shapefile

21. Now go to folder where you stored the newly created shapefile and select the following 7
file formats that make up a shapefile: *.cpg, .dbf, .prj, .sbn, .sbx, .shp, .shx (Hint: These
files should have same name for the 7 file formats), and compress them. You can use tools
like WinRAR, WinZip etc. Please make sure the compressed file is a *.zip file.
22. Time to upload to AGOL. Login to your AGOL account, go to content. Then click add item
and choose “From your computer”.

23. Choose your file, give it and name and then add some tags

24. Once shapefile is added to your content and hosted as a feature layer, select open in Map
Viewer
25. At this point you can change your style and choose how you want your POIs to be displayed

26. Time to configure Pop-up

27. Scroll down to Pop-up media and click image


28. Give it a title, a caption, select the field that has the thumbnail link for the URL and the field
that has links to the actual pics for the link section.

29. Now click OK, and done. Click on any of the POIs in your map, you should have the
thumbnail pic displayed in the pop-up, click on the picture it will open another tab and
display the actual pic in its original size

There are other ways to customize your pop-ups. This tutorial is just about getting your photos to
show in the pop-ups.
Please check the links below for more info:

Here, here and here.

If you know an automated way to connect the google drive links created to the other feature
attributes on the table, feel free to share.

You can contact me if you have any issues: [email protected]

Cheerio!

You might also like