[Users] LayerOpacitySlider doesn't work inside MapPanel
Eric Lemoine
eric.lemoine at camptocamp.com
Fri May 21 13:30:13 CEST 2010
On Wed, May 19, 2010 at 10:42 AM, Dirk Tanneberger
<dirk.tanneberger at unibas.ch> wrote:
> Hi together,
>
> I'm trying to use a LayerOpacitySlider directly as an item of a
> MapPanel. The problem is, it doesn't work. The Slider renders on to the
> map, but I can't move the button of the slider.
>
> The code looks like that:
>
> mapPanel: new GeoExt.MapPanel({
> id: 'mapPanel',
> x: 20,
> y: 120,
> anchor: '100% -20',
> //border: false,
> map: map,
> layers: layers,
> center: [844774, 6033921],
> zoom: 15,
> items: [{
> xtype: "gx_zoomslider",
> aggressive: true,
> vertical: true,
> height: 200,
> x: 10,
> y: 20,
> plugins: new GeoExt.ZoomSliderTip({
> template: "Scale: 1 : {scale}",
> offsets: [60, 40]
> })
> },{
> xtype: 'gx_opacityslider',
> aggressive: true,
> width: 150,
> x: 500,
> y: 10,
> layer: googleTLayer
> }]
> })
>
>
> The ZoomSlider works just fine, even though it's implemented in the same
> way. When I put the OpacitySlider outsight of the MapPanel it also
> works, but not inside.
> Anybody an idea?
It works in <http://dev.geoext.org/trunk/geoext/examples/layeropacityslider.html>.
Could you provide a full example showing the problem? (an html file I
could just drop in my GeoExt examples dir would be great). Thanks,
--
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