[Mapserver-users] Re: Mouse Over

Dave Walton mapserver@digger.net
Thu, 19 Feb 2004 03:19:14 -0800


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@acm.org
----------------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users