Select to view content in your preferred language

Configure web map popup window to display a photo or file that is hosted in a local folder on the pc || Configurar ventana emergente del web map para

549
1
02-21-2022 05:13 AM
Labels (3)
JavierCMartínezPrieto
Occasional Contributor

hello everyone!!!
I need help with the popup windows, I would like that these show a photo when I click on the web map, the problem is that these photos are not in the survey but hosted in a local folder on my pc.
I think it could be done through arcade (another way to program in esri).

any contribution will be of great help

thanks in advance to all of you who participate and greetings.

####################ESPAÑOL########################################################

hola a todos!!!
necesito ayuda con las ventanas emergentes, me gustaría que estas muestren una foto cuando pinche en el web map, el problema es que estas fotos no están en la encuesta sino alojadas en una carpeta local de mi pc.
creo que se podría realizar a través de arcade (otra manera mas de programar en esri)

cualquier aporte será de gran ayuda

gracias de antemano todos lo que participéis y saludos.

Javier C. Martinez Prieto
0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

Unfortunately, there's not a good way to do this. If I write a file://some-filepath URL, the web map does not recognize it as such. It needs to be http or https. See below, the file URL is just text, while the https URL is a link.

jcarlson_0-1645454902324.png

You can attempt to manually specify the filepath URL in a custom HTML popup:

<a href="{some_filepath}">Filepath URL</a>

But you'll find that the web map will re-write that link to direct you back to the current page.

The only way to link to local files from a map is to use a local program, like Pro or ArcMap. To link to images from a web map, they need to be web images, that is, hosted on some server where the web map can "see" them.

As a workaround, you can simply copy the text in the "file url" attribute and enter that in a new tab, but that can get tedious if you have to do it often.

- Josh Carlson
Kendall County GIS