[OpenLayers-Users] SLD based selection on WMS layers - How to set the new style of clicked point?

Shadin shadin__a at hotmail.com
Sun May 5 09:52:47 PDT 2013


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-tp5051426.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list