<br><font size=2 face="sans-serif">I understood you are using mapserver
and OL</font>
<br><font size=2 face="sans-serif">I never tried to do what you want, but
here is some other ideas. </font>
<br><font size=2 face="sans-serif">This add a feature to a vector layer
and highlight it</font>
<br><font size=2 face="sans-serif">http://openlayers.org/dev/examples/
perhaps there is a similar example on geoext</font>
<br>
<br><font size=2 face="sans-serif">Since you are using a spatial database,
when you click on the grid get the ID and query the database using ajax
or the method Michael sent you url: getRoad.php per example. The php can
return a json and the extent of the road. Create a feature with the json
and add it to the vector layer.</font>
<br>
<br><font size=2 face="sans-serif">Perhaps you can create a wms layer with
a dynamic filter and style it to simulate a highlight. You can add or not
this layer to your layer tree. When you click on the grid, get the ID of
the road and launch a getmap request with ID as a parameter on mapserver
to retrieve the image of the road.</font>
<br>
<br><font size=2 face="sans-serif">Perhaps the solution is a mix of all
this...</font>
<br><font size=2 face="sans-serif">Hope this help,</font>
<br><font size=2 face="sans-serif">steve</font>
<p><font size=3> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Paul james <pauljame@gmail.com></b>
</font>
<p><font size=1 face="sans-serif">31/03/2010 05:03 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@geoext.org, users-bounces@geoext.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Users] Highlight layer using Mapserver/Geoext/OL</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>Hi...<br>
</font>
<br><font size=3>On Wed, Mar 31, 2010 at 5:39 PM, <</font><a href=mailto:Steve.Toutant@inspq.qc.ca><font size=3 color=blue><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif"><br>
Did you create the WMS for the roads? What is the format of the roads data,
.shp, spatial database?</font><font size=3> </font>
<br><font size=3><br>
<br>
Yes, I created a WMS layer for the roads... The format is Spatial Database
(Mssql2008) ,,,<br>
<br>
</font>
<br><font size=2 face="sans-serif"><br>
I think you'll have to use a vector layer. <br>
Just an idea, If you have many roads you should query the data to retreive
the road you need and add this road to the vector layer.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font>
<br><font size=3><br>
Yes I have many roads.... Do you have any sample/ideia how can I do that?
Query and add to vector?<br>
<br>
Thanks<br>
</font>
<br><font size=3><br>
<br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=48%><font size=1 face="sans-serif"><b>Paul james <</b></font><a href=mailto:pauljame@gmail.com target=_blank><font size=1 color=blue face="sans-serif"><b><u>pauljame@gmail.com</u></b></font></a><font size=1 face="sans-serif"><b>>@</b></font><a href=http://geoext.org/ target=_blank><font size=1 color=blue face="sans-serif"><b><u>geoext.org</u></b></font></a><font size=1 face="sans-serif">
<br>
Envoyé par : </font><a href="mailto:users-bounces@geoext.org" target=_blank><font size=1 color=blue face="sans-serif"><u>users-bounces@geoext.org</u></font></a><font size=3>
</font>
<p><font size=1 face="sans-serif">31/03/2010 04:24 PM</font><font size=3>
</font>
<td width=51%>
<br>
<table width=100%>
<tr valign=top>
<td width=9%>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td width=90%><font size=1 face="sans-serif">Michael Prieß <</font><a href=mailto:michael.priess@gmx.de target=_blank><font size=1 color=blue face="sans-serif"><u>michael.priess@gmx.de</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><a href=mailto:users@geoext.org target=_blank><font size=1 color=blue face="sans-serif"><u>users@geoext.org</u></font></a><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Users] Highlight layer using Mapserver/Geoext/OL</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
<br>
Thanks Michael...<br>
<br>
But I think it will not help me...<br>
I need Highlight a WMS layer and with FeatureStore, I need create
a vector layer...<br>
<br>
Or am I missing something?<br>
<br>
Thanks<br>
<br>
On Wed, Mar 31, 2010 at 4:31 PM, Michael Prieß <</font><a href=mailto:michael.priess@gmx.de target=_blank><font size=3 color=blue><u>michael.priess@gmx.de</u></font></a><font size=3>>
wrote: <br>
Hi Paul,<br>
<br>
maybe this would be helpful :)</font><font size=3 color=blue><u><br>
<br>
</u></font><a href="http://dev.geoext.org/trunk/geoext/examples/feature-grid.html" target=_blank><font size=3 color=blue><u>http://dev.geoext.org/trunk/geoext/examples/feature-grid.html</u></font></a><font size=3>
<br>
<br>
> Any ideas how do that ?<br>
<br>
_______________________________________________<br>
Users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Users@geoext.org target=_blank><font size=3 color=blue><u>Users@geoext.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target=_blank><font size=3 color=blue><u>http://www.geoext.org/cgi-bin/mailman/listinfo/users</u></font></a><font size=3>
</font><tt><font size=2><br>
_______________________________________________<br>
Users mailing list</font></tt><tt><font size=2 color=blue><u><br>
</u></font></tt><a href=mailto:Users@geoext.org target=_blank><tt><font size=2 color=blue><u>Users@geoext.org</u></font></tt></a><tt><font size=2 color=blue><u><br>
</u></font></tt><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target=_blank><tt><font size=2 color=blue><u>http://www.geoext.org/cgi-bin/mailman/listinfo/users</u></font></tt></a><font size=3><br>
<br>
<br>
</font>
<br>
<br>
<br>
<br>