[Mapbender-users] dynamic href in tooltips / mod usemap

Tilo Wütherich tilo.wuetherich at la-bw.de
Thu May 29 10:15:16 EDT 2008

Hi Michael,

thank you for the information. It sounds to be not so easy and I too thought
about invoking the usemap with an icon, which would also mean extra work...
so I will shift this work a bit... ;-)



> -----Original Message-----
> From: mapbender_users-bounces at lists.osgeo.org
> [mailto:mapbender_users-bounces at lists.osgeo.org]On Behalf Of Michael
> Schulz
> Sent: Wednesday, May 28, 2008 4:08 PM
> To: Mapbender User List
> Subject: Re: [Mapbender-users] dynamic href in tooltips / mod usemap
> Hi Tilo,
> it should be possible, although you would have to add several things:
> - the function mod_usemap_set() is actually called from php/mod_usemap.php
> - it is there that the js arrays um_title, um_x, um_y are created with
> content from the wfs request
> - you could create another array, e.g. um_id and fill this array with
> another element value of your wfs request
> - then you need to change the function defintion and the call to the
> function accordingly mod_usemap_set(title, x, y, id)
> - add some content with id values to the href attribute
> BUT, be aware that actually clicking on the hilited point could cause
> another action to be invoked (the onclick event of the currently
> activated tool) instead of following the link in your area tag.
> Cheers, Michael

More information about the Mapbender_users mailing list