I understood you are using mapserver and OL I never tried to do what you want, but here is some other ideas. This add a feature to a vector layer and highlight it http://openlayers.org/dev/examples/ perhaps there is a similar example on geoext
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. 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. Perhaps the solution is a mix of all this... Hope this help, steve Paul james <[email protected]> 31/03/2010 05:03 PM A [email protected] cc [email protected], [email protected] Objet Re: [Users] Highlight layer using Mapserver/Geoext/OL Hi... On Wed, Mar 31, 2010 at 5:39 PM, <[email protected]> wrote: Did you create the WMS for the roads? What is the format of the roads data, .shp, spatial database? Yes, I created a WMS layer for the roads... The format is Spatial Database (Mssql2008) ,,, I think you'll have to use a vector layer. 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. Yes I have many roads.... Do you have any sample/ideia how can I do that? Query and add to vector? Thanks Paul james <[email protected]>@geoext.org Envoyé par : [email protected] 31/03/2010 04:24 PM A Michael Prieß <[email protected]> cc [email protected] Objet Re: [Users] Highlight layer using Mapserver/Geoext/OL Thanks Michael... But I think it will not help me... I need Highlight a WMS layer and with FeatureStore, I need create a vector layer... Or am I missing something? Thanks On Wed, Mar 31, 2010 at 4:31 PM, Michael Prieß <[email protected]> wrote: Hi Paul, maybe this would be helpful :) http://dev.geoext.org/trunk/geoext/examples/feature-grid.html > Any ideas how do that ? _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
