I'm trying to follow this example:
http://openlayers.org/dev/examples/SLDSelect.html

When I click on the point, its color should be changed, here is a piece of
my code:

control =  new OpenLayers.Control.SLDSelect(
                    OpenLayers.Handler.Click,
                    {
                        //displayClass: 'olControlClick',
                        layers: [city]
                    }
                )

                map.addControl(control);
                 control.activate();


Still can't figure out what's the point of displayClass. and how to assign
the new color.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SLD-based-selection-on-WMS-layers-How-to-set-the-new-style-of-clicked-point-tp5051399.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to