[OpenLayers-Users] OpenLayers 2.8 removeControl

Eric Lemoine eric.lemoine at camptocamp.com
Wed Jul 22 11:39:00 EDT 2009


On Wednesday, July 22, 2009, vd <vd at geosphere.fr> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi list,
>
>
>
> I’m trying to
> desactivate a control defines in my object map; i saw that the method
> removeControl from OpenLayers.Map is not working well.
>
>
>
> I need to fix the
> navigation of my map, in a particular case. So, I need to remove the OpenLayers.Control.Navigate
> from the controls of my map. But the method removeControl doesn’t work; I’m
> trying to use the method deactivate() or destroy() however I have the same
> result which is that my map already move.


have you tried deactivate() then removeControl()?

Cheers,




>
>
> Is someone can help me?
>
>
>
> Thanks,
>
>
>
> Regards,
>
>
>
> Viv
>
>
>
>
>
>
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list