Select to view content in your preferred language

popup images from Google drive

721
3
08-31-2022 04:20 AM
EdgarFernandes
New Contributor

hi, I want to link images inside a popup from a google drive folder

so the number of the img inside my folder match the id of the of the selected polygon

I put this inside the url for the image property but it does/t work ofcouse

https://drive.google.com/drive/folders/1V0z6nk3oWAGzbApTpbo0tONID_cJzFVE?usp=sharing/{OBJECTID}.png

I found this but this link https://support.esri.com/en/technical-article/000015466 but problem is that I need to change the image for each parcel and each image has a different id I try with my webserver but amazon does the same it change all the images urls individually.

Is there a solution for this?

 

 

 

 

0 Kudos
3 Replies
Mannus_Etten
Occasional Contributor

so you upload your photos to google and than you have an id. You use this ID in the popup-link. What is your problem exactly?

CEO the Right Direction BV/Portal Genius
0 Kudos
EdgarFernandes
New Contributor

each id is dynamic, meaning it changes for all images. I have 50000 images that are to go in each individual polygon of my map popUp.

This workflow is okay to change an specific image 

  1. Before closing the sharing box, copy the document ID from the URL in the field below Link to share. This URL contains the image id. For example: https://drive.google.com/file/d/0B14bzGsfJ06JMDF5Y2VsNU9FRVk/view?usp=sharing
  2. Replace <image_id> in this URL with your image id: https://drive.google.com/uc?export=view&id=<image_id>

but what I want to do is give my folder and have a corresponant image name for each objectid field

like 

url: https://GDrive/MyImg/{OBJECTID}.png  

the {OBJECTID} will match my image name inside the folder 

0 Kudos
Mannus_Etten
Occasional Contributor

unfortunately, I can't help you, I don't understand the problem. Because you want to show for a popup of one polygon 50.000 images?

 

Good luck with finding the solution.

CEO the Right Direction BV/Portal Genius
0 Kudos