[Mapserver-users] Imagemap from shapefile?

Pericles S. Nacionales nacional at cbs.umn.edu
Mon Feb 16 13:51:44 EST 2004


Dave,

"mode=query", query (html) templates, and some javascript magic...  See
http://www.dnr.state.mn.us/maps/compass.html for an example (remember to
click on the "info" button).  The Minnesota DNR LandView also does
this.  In your case, you'd want to remove all of the interface but the
map.  You also need to have a database attribute that points to URLs
(see MapServer tutorial example 3.4), or at least be able to create the
URL based on attributes from your database.

You'll need two template files: one that loads the image via form (with
hidden values, and with "mode=query"), and a second, the query template
where MapServer writes the query result (a URL) that a javascript
automatically initializes/loads.  It shouldn't be too difficult if you
know javascript.

Sorry I have no working example to show you other than the URL above.

-Perry

On Mon, 2004-02-16 at 00:33, Dave Walton wrote:
> I'm not sure how feasible this is, but I'd like to be able to generate a
> client-side imagemap to be used with MapServer-created images.  The
> imagemap would have clickable areas that would match up to certain
> polygons drawn by MapServer.
> 
> Has anyone done this?  Any ideas how it could be done?
> 
> Thanks,
> Dave
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
-- 
"He's no geek.His tan's too good." -Benjamin Choate




More information about the mapserver-users mailing list