Arto,

Have a look at the highlighting wiki page: 
http://trac.osgeo.org/openlayers/wiki/Highlighting
http://trac.osgeo.org/openlayers/wiki/Highlighting .  I have successfully
implemented the "WMS layer atop WMS using OGC standards and SLD" method,
however, instead of bothering with an SLD filter, I just call a new
cql_filter and pass the parcel ID parameter to the following function:

function highlightWMS(parcelid) {
    filter = "PID = '" + parcelid + "'";
    var filterParams = {
        cql_filter: filter
    };

    parcelsHighlight.mergeNewParams(filterParams);
    parcelsHighlight.setVisibility(true);

}

See it in action here:  http://www.opengeohost.com/maps/stlawrence/
http://www.opengeohost.com/maps/stlawrence/ . Click the Parcel Search tab,
enter a name (McBride) and click the search button.  The results populate an
ExtJS grid and if you click the "Zoom" link, you will zoom into the parcel
and call the highlightWMS() function above.  All functionality is
accomplished via WMS, WFS, and SLD.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com 
http://geoserving.net/ geoserving.net 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-bypass-the-default-SLD-tp5653977p5654872.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to