Hi list,

i debugged a bit deeper into my problem using this code

   this.controls['snap'].setLayer(this.activeLayer);
        this.map.addControl(this.controls['snap']);
       
        //this.controls['snap'].setLayer(this.activeLayer);       
        this.controls['snap'].activate();
        console.debug(this.activeLayer);
        this.controls['split'].handler.style=style_split;
        this.controls['split'].activate();       
        //
        console.debug(this.controls);

where "snap"=SnapControl & "split="DrawFeatureControl"
Unfortunately this.activelayer seems to receive no events like
skechtModified for the snap control

any ideas what might be going wrong?

THX Carsten

Dipl. Inf. Carsten Eider schrieb:
> Hi list,
>
> I am updating my application GeoEditor from OL 2.7 to 2.8.
> Worked fine upto the point where i wanted to integrate a snapcontrol
> for splitting polygons.
> The process is as described:
>
>     * Select a polygon
>     * deactivate selectcontrol, activate snap
>     * set splitting line on selected polygon
>     * after double-click split polygon
>
> While using my tool I activate and deactivate controls not using the
> standard-toolbar.
>
> Does a snap-control require any other controls in the background for
> working?
>
> THX
> Carsten Eider
> -- 
> Mit freundlichen Grüßen / Yours faithfully
> Carsten Eider
>
> Dipl. Inf. (FH)
>
> Kompetenzzentrum für Innovative Informationssysteme
>
> c/o Fachhochschule Bingen / University of applied sciences Bingen
>
> Berlinstraße 109
> 55411 Bingen
>
> Tel: +49 (0) 6721 / 409-179
> Fax: +49 (0) 6721 / 994-251
> email: [email protected]
> Internet: iis.fh-bingen.de 
>
> Diese E-Mail, inklusive anhängender Dateien, kann vertrauliche und/oder 
> rechtlich geschützte Inhalte enthalten.
> Wenn Sie nicht der richtige Adressat sind und diese E-Mail irrtümlich 
> erhalten haben, benachrichtigen Sie bitte sofort den Absender und vernichten 
> Sie sodann die Originalnachricht.
> Die unbefugte Kopie, Weiterleitung oder sonstige Verbreitung dieser Nachricht 
> ist nicht gestattet.
>
> This e-mail, including attachments, may contain confidential and/or 
> privileged information.
> If you are not the intended recipient, please notify the sender immediately 
> then delete the original message.
> Any copying forwarding and/or distribution without permission of the sender 
> is forbidden.
>   
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>   

-- 
Mit freundlichen Grüßen / Yours faithfully
Carsten Eider

Dipl. Inf. (FH)

Kompetenzzentrum für Innovative Informationssysteme

c/o Fachhochschule Bingen / University of applied sciences Bingen

Berlinstraße 109
55411 Bingen

Tel: +49 (0) 6721 / 409-179
Fax: +49 (0) 6721 / 994-251
email: [email protected]
Internet: iis.fh-bingen.de 

Diese E-Mail, inklusive anhängender Dateien, kann vertrauliche und/oder 
rechtlich geschützte Inhalte enthalten.
Wenn Sie nicht der richtige Adressat sind und diese E-Mail irrtümlich erhalten 
haben, benachrichtigen Sie bitte sofort den Absender und vernichten Sie sodann 
die Originalnachricht.
Die unbefugte Kopie, Weiterleitung oder sonstige Verbreitung dieser Nachricht 
ist nicht gestattet.

This e-mail, including attachments, may contain confidential and/or privileged 
information.
If you are not the intended recipient, please notify the sender immediately 
then delete the original message.
Any copying forwarding and/or distribution without permission of the sender is 
forbidden.

<<attachment: eider.vcf>>

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to