[OpenLayers-Dev] Greying out of navigation history controls

stegch at web.de stegch at web.de
Fri Apr 23 03:44:27 EDT 2010

Hello Tim Schaub,thanks for your suggestions - I also think that your second solution is the simpler and safer one (it's not necessary to insert missing tool types). I'll open a ticket with my problem with the history controls.Best regards,Christian

-----Ursprüngliche Nachricht-----
Von: Tim Schaub  
Gesendet: 23.04.2010 07:12:36
An: dev at openlayers.org
Betreff: Re: [OpenLayers-Dev] Greying out of navigation history controls

>stegch at web.de wrote:
>> Hi list, I have a question regarding the previous and next controls
>> of the navigation history, which I use in a panel besides some other
>> buttons.
>> If I select another button (i.e. 'Pan' or 'GetFeatureInfo') the panel
>> greys out all other icons - including 'nextExtent' and
>> 'previousExtent' (although both can still be used).
>> Would it make sense not to grey out navigation history controls by
>> the panel (panel.js, line 163) or is this behaviour even desired?
>I think it would make more sense for line 162 to read as follows:
>     if (this.controls[i].type === OpenLayers.Control.TYPE_TOOL) {
>Then controls like DragFeature, DragPan, DrawFeature, Measure, 
>ModifyFeature, SelectFeature (w/ box true only), and ZoomBox should be 
>given type: OpenLayers.Control.TYPE_TOOL - controls that compete for drag.
>A simpler change would be to have the panel only deactivate other 
>controls if type was not TYPE_TOGGLE or TYPE_BUTTON.  Then the obligate 
>controls in the NavigationHistory control could become TYPE_BUTTON.
>There's room for interpretation there.
>> Thanks for your help Christian 
>> ___________________________________________________________ NEU:
>> WEB.DE DSL für 19,99 EUR/mtl. und ohne Mindest-Laufzeit! 
>> http://produkte.web.de/go/02/ 
>> _______________________________________________ Dev mailing list 
>> Dev at openlayers.org http://openlayers.org/mailman/listinfo/dev
>Tim Schaub
>OpenGeo - http://opengeo.org
>Expert service straight from the developers.
>Dev mailing list
>Dev at openlayers.org
GRATIS: Movie-Flat mit über 300 Top-Videos. Für WEB.DE Nutzer
dauerhaft kostenlos! Jetzt freischalten unter http://movieflat.web.de

More information about the Dev mailing list