On Sun, May 5, 2013 at 1:53 PM, Shadin <[email protected]> wrote:

> 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.
>

I believe you'll get answers quicker if you ask on the OpenLayers users
mailing list

Cheers
Andrea

-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
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