Highlight Features

Leonardo Globo olivieri.leo at TISCALI.IT
Wed Aug 31 09:40:46 PDT 2005


Hello Armin,
I also have the same problem.
You could send the code to me to highlight entities after having made a
query to select entities
Thanks in advanced

Leo




Rob,

the easiest way would be using the querymap function like
...
// Execute a query (here an attribute query)
$queryString =3D3D "('[subdivname]' =3D3D '$sSubDivsion')";
$your_layer->queryByAttributes('subdivname', $queryString, MS_MULTIPLE);

// Draw map
$mapImg =3D3D $map->drawQuery();  // instead of $map->draw()
...

You can specify colors for highlighting in a QUERYMAP tag in the map =3D
file.


__________________________________________________________________
TISCALI ADSL 1.25 MEGA
Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone Telecom
a partire da 19,95 Euro/mese.
Attivala entro il 31 agosto, il primo MESE è GRATIS! CLICCA QUI.
http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/



More information about the MapServer-users mailing list