4

How can I show an actual web page (rather than just a hyperlink) in the pop-up box of ArcGIS Online?

In the ArcGIS Online "Pop-up Contents" section adding a url in the "Custom Attribute Display" just shows a link, and clicking on it opens the url in different page.

Is there any way to show the web page directly in the map pop-up like happens for images or charts when we click on a layer, as in the mockup below?

enter image description here

  • I am not clear about what you are asking but I think you may be referring to the HTML Popups of ArcGIS for Desktop in its ArcMap application. Would you be able to edit your question to include more precise details and perhaps some pictures to clarify it, please? – PolyGeo Aug 11 '14 at 20:00
  • I have posted a picture to make the question clear. – fean Aug 11 '14 at 21:13
  • Thanks - but the main thing I am unclear about is whether you are using ArcGIS for Desktop or ArcGIS Online or some other part of the ArcGIS Platform to display that pop-up. – PolyGeo Aug 11 '14 at 21:17
  • 1
    Its not desktop, its ArcGIS online, I thought webmap means the ArcGIS online. – fean Aug 11 '14 at 22:23
  • It was your arcmap tag that caused me the confusion because that is an application of ArcGIS for Desktop. I will remove that and your arcgis-10.1 tag, and replace them with arcgis-online. – PolyGeo Aug 11 '14 at 23:20
2

As noted in the answer above the HTML tag is not allowed in the custom attribute editor. However if you write the tag and the {url} to a field of the feature layer it will be executed by the popup.

enter image description here

I did it by using ArcGIS Online's field calculator and adding the and it's attributes to each row.

  • I dont think this works, i tried and it failed it just shows the value as text – NULL.Dude Oct 19 '18 at 12:44
1

Thanks for the clarifications in the comments above. As I understand it, you are creating a map by logging into ArcGIS Online, choosing My Content, then Create Map. From here you are adding a layer using Add , and trying to configure the layer's popup to show a website's contents, rather than just a hyperlink to the website's address.

I don't believe this is possible using the built-in ArcGIS Online map viewer. The viewer allows you to configure a few options for a popup:

enter image description here

...but these don't seem to allow HTML. In order to display the contents of the website, you'll need to include it within an iframe, and this doesn't appear to be supported by the popup - in my testing, the HTML code is rendered as text, instead of being executed:

enter image description here

If I'm correct, then you'll need to write your own map viewer (rather than using the out-of-the-box ArcGIS Online map viewer) using the ArcGIS Server JavaScript API, which does support running HTML within a popup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.