[OpenLayers-Users] overwriting functions

Kevin Kempfer mail at kevinkempfer.de
Mon Sep 17 09:59:17 EDT 2007


Hi,

Christopher Schmidt schrieb:
> and overriding downFeature can be done similarly:
> 
> mySelect = new OpenLayers.Control.SelectFeature(vectors, {onSelect: 
>   serialize, onUnselect: deselect,multiple: true, downFeature:function()
>   {alert('hi')}});
> 
> However, before you do htis, I'd like to understand why, so we can
> figure out in what way the OpenLayers SelectFeature handler is lacking. 

Thanks! I'd like to have the possibility to select features while
hovering over them and to keep them selected on mouse out, when the user
clicks on it. This is a change of the logic, so I thought overriding
should be my solution. But you're right, because these are not API
functions I'll have trouble sooner or later.

Kevin

-- 
http://www.kevinkempfer.de
Tel.: (07071) 860303
ICQ:  2186573
Skype: kevin0815

Früher haben die Frauen auf ihrem eigenen Boden gekämpft.
Da war jede Niederlage ein Sieg. Heute kämpfen sie auf dem
Boden der Männer. Da ist jeder Sieg eine Niederlage.
(Coco Chanel)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3249 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070917/f482e1da/smime.bin


More information about the Users mailing list