[OpenLayers-Users] Default control
Casper Børgesen
cbo at le34.dk
Wed Apr 14 07:39:39 EDT 2010
Hi Eric.
Thanks for your answer. Looking at my previous post, I can see that I need to fill in some details - sorry :$
I'm using Ext and GeoExt. In this case all my controls are added to a toolbar (Ext) as Actions (GeoExt). So I'm not sure the Control.Panel (OL) can be used here.
Given my new information, do you think its possible to have a default control?
/Casper
-----Oprindelig meddelelse-----
Fra: Eric Lemoine [mailto:eric.lemoine at camptocamp.com]
Sendt: 14. april 2010 12:02
Til: Casper Børgesen
Cc: users at openlayers.org
Emne: Re: [OpenLayers-Users] Default control
On Wed, Apr 14, 2010 at 10:28 AM, Casper Børgesen <cbo at le34.dk> wrote:
> Hi!
>
>
>
> I have different controls/tools in my OpenLayers site, and I need to have a
> default control. When the user deactivates a control (zoom, measure tool,
> custom tools), I need my site to fall back to (activate) the default
> control.
>
>
>
> Can you suggest a good approach to this problem?
Hi. Control.Panel supports this. So place your controls in a panel so
it should work.
--
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