[Mapserver-users] Re: Mouse Over

Dave Walton mapserver at digger.net
Thu Feb 19 06:19:14 EST 2004


On Tue, 17 Feb 2004 22:54:41 +0100
Alexander Pucher wrote:

> http://map.gis.univie.ac.at/ms_test/imagemap.php
> It seems to work at the first sight, but when you click on one of the 
> polygons, no windows appears. If you look at the source code of the 
> page, you will see that no argument 'p' is handed over to the javascript
> function.
> 
> Can anyone see what the problem is with my demo? I followed the exact 
> instructions from your wiki section.

It looks to me like you need to add a LABELITEM tag to the LAYER you are
using for the imagemap.  You don't need to actually display labels, or
even have a LABEL object, but the argument sent to the javascript function
is the contents of the field specified by LABELITEM.

Dave


-- 
----------------------------------------------------------------------
Dave Walton                                            dwalton at acm.org
----------------------------------------------------------------------



More information about the mapserver-users mailing list