On Thu, May 28, 2009 at 02:32:33PM +0200, Rahn Hanno (rahn) wrote: > Hello List, > > > > Perhaps somebody can give me a tip. I have a problem with the ZoomBar and the > PanBar in OpenLayers. If I add a map in my div object there are always the > ZoomBar and the pan Buttons in the left upper side of the map as default. I > will have this buttons outside the map. I try to delete this controls in this > way: > > > > map.removeControl(...); > > > > But it doesn't work. I don't know the name of the control. Perhaps somebody > can help me to realise this problem. I will have this functionality outside > the map. > > A lot of thanks for your help.
1. Removing controls doesn't take 'names', you pass the control object. The control can be found in map.controls. 2. http://trac.openlayers.org/wiki/DefaultControls > > > Greetings > > Hanno > > > > ------------------------------------------ > > Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik > > ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche > Ressourcen > > Fachstelle Geoinformatik > > Grüental, Postfach CH-8820 Wädenswil > > Tel +41 (0)58 934 5592 > > Fax +41 (0)58 934 5580 > > hanno.r...@zhaw.ch > > > > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users