Highlighting a feature on a centered querymap map?

Rebecca Colwell colwell at GEOG.UMN.EDU
Tue Sep 21 13:13:28 EDT 2004


Hey David!

That did it for the centering of each polygon!  Thank you so much!

Any ideas on how to highlight the centered polygon?

Thanks again!

~Becky

David Fawcett wrote:

> That should have been   &mapsize=187+121
>
> David.
>
> David J. Fawcett
> MN Office of Environmental Assistance
>
>
>>>>David Fawcett <David.Fawcett at STATE.MN.US> 9/17/2004 2:34:18 PM >>>
>
> Rebecca,
>
> Could you also add &mapsize+187+121  to your URL
>
> That may take care of the size issue.
>
> David.
>
>
>>>>Rebecca Colwell <colwell at GEOG.UMN.EDU> 9/17/2004 2:08:52 PM >>>
>
> Hey everybody,
>
> I'm having two problems with a modified querymap I'm working with.  In
> an attempt to recenter to the queried feature, I followed Steve Lime's
> advice in a past listserv post, which was:
>
>         Just centering is easy. In you're query template you might
> have
>         something like:
>
>         <!-- the image -->
>         <img src="/cgi-bin/mapserv?map=[map]&mapxy=[shpmidx]+[shpmidy]
>         &scale=250000[get_layers]&mode=map">
>
> The result of this is almost exactly what I was looking for, except
> for
> two things.
>
> 1. The querymap map size takes the main map's size, instead of the
> smaller size I put in the QUERYMAP part of the .map file (see below).
> How can I regain access to my original querymap specifications?
>
> 2. The other thing I'd like to have is my selected polygon hilite.
> Like
> my first question, the hilite feature only works when I don't change
> the
> img src tag.  Is there a way I can have my cake and eat it too?
>
> Thanks for helping,
>
> ~Becky
>
>
> MAP
>    IMAGETYPE      PNG24
>    EXTENT         -6153561 4847233 3841846 -3000000
>    SIZE           450 294
>    SHAPEPATH      "data"
>    FONTSET "fonts/fonts.list"
>    PROJECTION
>      "proj=laea"
>      "ellps=clrk66"
>      "lat_0=45"
>      "lon_0=-100"
>    END
>
>    QUERYMAP
>       STATUS ON
>       STYLE hilite
>       COLOR 0 255 0
>       SIZE 187 121
>    END



More information about the mapserver-users mailing list