[OpenLayers-Users] remove PanZoomBar

Kris Geusebroek kgeusebroek at xebia.com
Thu May 28 08:44:41 EDT 2009


Hi,

 

I believe thats the default if you supply no controls yourself.

You might want to try to supply an empty object or array as controls to the map to see if the default is not used.

 

Cheers Kris

 

From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Rahn Hanno (rahn)
Sent: Thursday, May 28, 2009 2:33 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] remove PanZoomBar

 

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.

 

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.rahn at zhaw.ch 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090528/3cddf3c2/attachment.html


More information about the Users mailing list