[mapserver-users] HTML image maps and PDF

E Perik erwin at perik.nu
Mon Apr 1 19:45:36 EST 2002


Hi Tyler,

How it can be done:

1) Retreive shape
2) Get it's extents (geo-coords!)
3) Determine it's Center point
4) Translate Center point to Pixel-coordinates
5) Retreive shape-info from dbf-file

Looks something like this:

<MAP NAME="test">
<AREA SHAPE="CIRCLE" HREF="..." ALT="..." COORDS="167,253,10">
</MAP>

When you load the image, use like:
<IMG SRC="file" USEMAP=#test BORDER=0 WIDTH=400 HEIGHT=300
NAME=yourmapnam>

* HREF is your HTML or PDF you want to refer to
* ALT is 'mouse-hovering' information

Tip: use the overlib class from http://www.bosrup.com/web/overlib/

BTW, did some stuff on this earlier, and found out that it cannot be
used on the PHP/Rosa combination. Bypassed this to use a popup and then
use points of queried objects to use for the USEMAP (imagemap).

Does anyone know if Rosa can handle USEMAPS ?

Erwin



-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Tyler
Mitchell
Sent: Monday, April 01, 2002 11:36 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] HTML image maps and PDF

Hi guys, kinda off topic but not really.  The terminology overlaps, but
I'll try it anyhow :)
I want to take an image of a map from mapserver and use HTML image maps
(not to be confused with "image of a map") as web links to other
documents.
I know I could do the same sort of thing with Mapserver, but the target
is
for offline usage.  If would be really nice to be able to do this kind
of
thing in a PDF file but even just straight HTML would do.
Here's my (more direct) question.  Anyone got any ideas for how I could
take a shapefile or other vector data and use it as an HTML image map
(aka
hotspots?) on a web page.  The input data would have some value in it
that
points to a URL or other file.

Any ideas?  Boy that's convoluted to explain.

Tyler




More information about the mapserver-users mailing list