hi olaf,

the not so stylish way to do that is to put the button inside a div outside
the map area. you can always hide it by changing the style.visibility or
style.display properties by javascript.

remi

On Tue, Sep 21, 2010 at 3:55 AM, MostlyBaldEagle <[email protected]>wrote:

>
> I am trying to hide buttons on the control panel based on state on the map.
> i.e. what is selected, so the user has only valid options in the control
> Panel.
>
> Is there a straight forward (or not so straight forward) way to accomplish
> this?
>
> I was hoping I could make the button insensitive/disabled.
>
> Any help/idea would be greatly appreciated.
>
> Thanks
> Olaf
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Cannot-hide-buttons-on-Openlayers-Control-Panel-tp5552081p5552081.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to