[Mapserver-users] Mouse Over
Steve Lime
steve.lime at dnr.state.mn.us
Thu Feb 19 22:09:01 PST 2004
I need to ammend this message. I made a mistake earlier although if you
were using a querymap you wouldn't notice. The searchmap option *must*
take a value, set searchmap=true in the URL below and all is well. One
other caveat, don't use the size options in the querymap options, rather
let it inherit size from the main map object. I'll have to fix this
issue later. Otherwise seems to work fine (code problem mentioned
earlier has been long fixed) either with an image or as a seperate
component.
Steve
>>> Steve Lime 02/19/04 11:52 AM >>>
Here's a CGI-based demo.
http://maps.dnr.state.mn.us/cgi-bin/mapserv41?map=/usr/local/www/docs/testing/imagemap/test.map&mode=nquery&searchmap
You can download at http://maps.dnr.state.mn.us/testing/imagemap.zip
It's basically just a query that outputs features that have been
transformed (clipped and thinned) to image coordinates. The nice thing
is that you could use this for a component-based system, that is create
the map and the imagemap with seperate calls. The example above uses the
little documented "searchmap" option. This tells MapServer that the
search exent is that of a map so any incoming extent is fit to a map
(width/height) before querying is done. You can also use it with
pan/zoom interfaces (mode is still nquery) and MapServer will apply the
pan/zoom *before* doing the query. I don't know how you'd combine an
imagemap and a strait CGI-form so you could get the tooltips and the
clicking in the map for navigation. It's a start.
Steve
>>> "Steve Lime" <steve.lime at dnr.state.mn.us> 2/19/2004 12:46:07 AM >>>
I don't know squat about the imagemap output function. As Atilla said
it's on the experimental side. I do have an alternative using queries
and the [shpxy...] tag that may be of interest. It's pretty flexible and
usable from the CGI application. I'll post an example on the DNR
machines tomorrow (can't get to them tonite).
Steve
>>> "Charlton Purvis" <cpurvis at asg.sc.edu> 02/17/04 11:52 AM >>>
Hi, Steve:
Checked out the overlib URL you sent below, and I must admit it's slick.
I'm a little lost, though, what library do I need to make sure I have
installed and part of my ./configure?
I'm trying to monkey around w/ imagemap, a la the Wiki post:
OUTPUTFORMAT
NAME imagemap
MIMETYPE "text/html"
DRIVER imagemap
END
But a shp2img gives me a:
msDrawMap(): GD library error. Unable to initialize image.
Running 4.0.1 and gd-2.0.15.
My MS build looks like it put mapimagemap.c into my libmap.a. Any
hints?
Thanks,
Charlton
> -----Original Message-----
> From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
> Sent: Tuesday, February 10, 2004 12:51 PM
> To: pucher at atlas.gis.univie.ac.at; mapserver-users at lists.gis.umn.edu;
> bartvde at xs4all.nl
> Subject: Re: [Mapserver-users] Mouse Over
>
> Hi all: The mapimage w/XML software was really more a
proof-of-concept.
> I never took it any further than that. The source is around if you're
> interested. There are other possibilities as well. For example, in 4.0
> there actually is a imagemap output object (see
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap) but I don't
know
> much about it. In 4.1 there is the [shpxy] tag and I've been planning
to
> add an attribute to allow you to output coordinates in IMAGE
> coordinates. That way you could build an imagemap on the fly via the
> CGI. It could also be used to populate DHTML popup objects (e.g.
> http://www.bosrup.com/web/overlib/).
>
> Would be happy to discuss further.
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list