Il martedì 11 settembre 2007, Laura Poggio ha scritto: > Dear list, > I finally solved the "basic" problems and set up a working application > thanks to p.mapper. It is really great that such a nice tool is available!. > Now I have an other problem. I have a point layer (soil sites). I would > like to "link" to each point an image showing the site itself. > The ideal situation would be to have a thumbnail of the image as pop-up and > when clicking on a link in the pop-up to have the full image. The format of > the image does not mind, can be any graphical format or even pdf. > I didn't find any information about how to do that. I have some code in PHP > on how to link thumbnails and images (files), but I do not know how to link > to p.mapper. The only possibility it came to my mind is to put the images > in a database and to join the field to the point layer. Is that a real > possibility to explore?
Hi, We've done something similar before, we decided to store images on the filesystem and save the image path (relative to the base storage folder) in the database. You can retrieve this path as a normal attribute and create an hyperlink in p.mapper query results window without (almost) touching p.mapper code. If you need something more fancy, you could create a custom tool, a js function to handle the tool and a small ajax responder that return the image URL. There is a getxy example of such a function in the mailing list archives (about one or year ago, I think). Since p.mapper use jQuery, you can also find a lot of nice plugins (lightbox effect for example) for image display. Hope it helps. Ciao -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ pmapper-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pmapper-users
