Select to view content in your preferred language

Image in pop-up failing to link to url

350
2
Jump to solution
06-07-2024 01:55 AM
Labels (2)
SimonCrutchley
Occasional Contributor III

Hi there,

I have an app displaying hundreds of thousands of aerial photographs via their NGR location.

https://historicengland.org.uk/images-books/archive/collections/aerial-photos/

The pop-up first pulls up a thumbnail, clicking on which takes you to the url where you can see the full resolution image. This worked fine in Map Viewer Classic, but not in Map Viewer, which appears to have stripped out the url link. I’ve seen several posts here saying how Map View now views the url as plain text, and that you have to use Arcade, but I’m not quite sure how.

Below is the html I used in Classic, with the core bit highlighted.

<div style="text-align: center;"><font size="1.5"><b>Click on the image below to open in a new tab</b></font><span style="font-size: 10px;"> </span></div><a href="https://historicengland.org.uk/images-books/archive/collections/aerial-photos/record/{FILENAME}" rel="nofollow ugc" style="font-family: Verdana, Helvetica, sans-serif; font-size: 12px;"><img src="https://thumbs.smartframe.io/27025fea9afa38753501b02dbd8a40f2/{FILENAME}" style="width: 200px; margin-right: auto; margin-left: auto; display: block;" /></a><span style="color: rgb(68, 68, 68); font-family: Verdana;"><div style="text-align: center;"><font face="Arial" style=""><b><span style="font-size: 10px;">{COPYRIGHT}</span><br /><div style="text-align: left;"><span style="color: rgb(76, 76, 76); font-family: &quot;Avenir Next W01&quot;, &quot;Avenir Next W00&quot;, &quot;Avenir Next&quot;, Avenir, &quot;Helvetica Neue&quot;, sans-serif; font-size: x-small; font-weight: 400;">{NOTES}</span></div></b></font></div></span><font size="1.5"><font face="Arial" style=""><font size="2"> <br /><b>Date flown: </b>{Date_Flown_Modified}<br /><b>Flight: </b>{FLIGHT_NUMBER}<br /><b>Photographer: </b>{PHOTOGRAPHER}</font>

If anyone can point me in the direction of how to change this into Arcade I would be most grateful.

Ta

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Stefan_Thorn
Occasional Contributor II

Hi @SimonCrutchley 

I did a quick setup.

 

in popup add Media:

Stefan_Thorn_0-1717766301488.png

Click media content:

URL: used your url in your data to thumbnail (attribute in your data?) or attachements?

Link: url to your aerial photo site (attribute in your data?)

Stefan_Thorn_1-1717766391689.png

result:

Stefan_Thorn_2-1717767189398.png

 

 

 

View solution in original post

2 Replies
SimonCrutchley
Occasional Contributor III

I've found a workaround for this adding the image and creating a url link to that separately. The thumbnail image is massive and creates scrolling in the pop-up, but it's a start. I'm now looking to see if I can control the image size.

0 Kudos
Stefan_Thorn
Occasional Contributor II

Hi @SimonCrutchley 

I did a quick setup.

 

in popup add Media:

Stefan_Thorn_0-1717766301488.png

Click media content:

URL: used your url in your data to thumbnail (attribute in your data?) or attachements?

Link: url to your aerial photo site (attribute in your data?)

Stefan_Thorn_1-1717766391689.png

result:

Stefan_Thorn_2-1717767189398.png