Highlight a ShapeObject in Rosa applet.

Nico Alberti n8 at LANGHIRANO.IT
Mon Aug 30 03:31:47 PDT 2004


Hi everybody.

I am trying to customize a MapLab generated application.

I just added a combo box that let me zoom a map to a particular (line)
object of a shapefile. This is working fine but I would like to
highlight the selection. I am using the Rosa applet but I did not find a
decent working method for doing it: it seems (at least to me) that the
applet documentation doesn't explain how to do any highlighting, and the
mailing list about it is inactive.

What I tried to do then is simulating a query event passing in the
applet "IMG_URL" param

run_query=1
gszQueryCoords=(the pixel coordinates of a node)

As you already imagined, this method is far from perfect, as the
translation from geographical coordinates into pixels does not work most
of the times, and if it does, nothing prevents from that point belonging
to another overlapping object (I am working with a shapefile
representing channels) highlighting two or more objects.

Can anybody suggest me a better method for acheving this goal?

Thank you in advance and sorry for my poor English.

--
Ciao
Nico



More information about the MapServer-users mailing list