[Mapbender-users] Hyperlink files

Uwe Seher uwe.seher at googlemail.com
Fri Jul 11 04:33:32 EDT 2008


On Thu, 10 Jul 2008 10:36:54 +0200, San_79 <sanmink at hotmail.com> wrote:

> Hi list,

Hi!

> In ArcGis I have a point shapefile in which I stored the path to some  
> images
> and pdf documents, so that using the hyperlink tool and clicking on the
> features these files open up in a new window. Is there a way to do  
> something
> similar with geoserver/postgis/mapbender?

Yes.

> I exported the shapefile to postgis and when clicking in the mapbender  
> GUI
> with the feature info tool I see the path as a text but I would like it  
> to
> be a hyperlink...

You need to create an image tag in your template which has the path as  
src-Attribute like this (UMN-Syntax):

<img src="[PATH_ATTRIBUTE]">


> ...or even to display the images as a pop-up with a mouseover??

I prefer to use a small preview image and open the whole pic with a click  
in a new Window. This looks like:

<a href="[PATH_ATTRIBUTE]" target=_self><img src="[PATH_ATTRIBUTE]"  
width="200" heigth="100" alt="[PATH_ATTRIBUTE]"></a>

> What is the easyest way? Can someone give me a hint?

s.o.
maybe you have to make some changes to fit this in your sourounding.


> Many thanks in advance!
>
> Sandra

Your welcome

Uwe

----------------------------------------------------------------------------
http://www.gispunkt.de - http://maps.gispunkt.de
----------------------------------------------------------------------------


More information about the Mapbender_users mailing list