Display a .pdf in a map tip
I want to display a pdf file in a map tip. I want to give the user a preview of the asbuilt they are clicking on. Is this possible? I can do this with a .jpg but I can't make it work for .pdf.
I tried to use this example I found online but it didnt work. I assume the embed tag gets removed.
<embed src="http://example.com/the.pdf" width="500" height="375" type="application/pdf">
0
-
Not as a .pdf, though you can use <img> tags and thus could mass-convert your pdfs into a format that the MapTips will embed. I'm not recommending this, in addition to the extra work involved on the back end there's a usability issue with large popups over your map. I think that you'd also need to make a mod or so to the viewer in order to make the maptips large enough for this use case.
What we do is put a 32p pdf icon in the maptip which links directly to the pdf, and this is the route I recommend. The users who want that document have access right there, and the users who want to use the app don't need to make sacrifices for the first group.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar