Hello,
I tried looking for blogs that had similar questions and this seemed to be pretty close. I have a feature layer hosted on enterprise and one of the attributes ("content") contains a link to a pdf document. On the web map popup configuration I threw this HTML in:
<embed src="{content}" type="application/pdf" width="100%" height="800px"> </embed>
Initially it looks like it worked (see below), however once I save the map and then try to open it again the embed code is removed from my custom display.
I tired using other HTML tags as well such as <iframe> and <object> however the same thing occurred.
Thanks!
You can..
Is there a way to change what "More Info" to say something else?
Yes, the PDF files need to be accessible from the web, on a website, not on your local machine.With the URL to the PDF as an attribute value of a 'PDF_Field' column, displaying this in the popup will automatically convert it to a link that says "More Info"Thanks,Mike
Your PDF needs to be accessible on the web via a URL (http://somewhere.com/abc.pdf). Any attribute field that is a URL will display in the attribute list as a link that can be clicked. For example, given a field named PDF_Field, it might have values as shown below.PDF_Fieldhttp://somewhere.com/abc.pdfhttp://somewhere.com/def.pdfThanks,Mike
To set a hyperlink for a feature, click on that feature with the Identify tool. Right-click the feature name in the Identify dialog box and choose Add hyperlink from the context menu. Specify the desired type of hyperlink target. To hyperlink to a Web page, click Link to a URL and type the URL. To link to a PDF, Microsoft Word, or other document, click Link to a Document and type a path to the document or browse to its location. For dynamic hyperlinks, relative paths are supported for map layers but not for .lyr files. Access dynamic hyperlinks by clicking the feature with the Identify tool, right-clicking to access the context menu, and choosing Hyperlinks.With ArcGIS 9.3, a parameter can be set to control how a hyperlinked document is opened by specifying the page that will be opened. For example, c:\temp\PopulationData.pdf ?/A "Page=5=OpenActions" would open the PopulationData.pdf document at page 5. ArcGIS uses a question mark (?) as a special delimiter to separate the file path from the parameter. In this case, c: \Program Files\Adobe Reader 8.0\Reader\AcroRd32.3exe. is the location of the software, /A "Page=5=OpenActions" is the open parameter, and c:\temp\PopulationData.pdf is the location of the file.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.