Hello,

I try to make a scalebar but without success.
My scalebar doesn't show the lines. 

 <<Bild (Metafile)>> 

This is my code.

var scalebar = new OpenLayers.Control.ScaleBar({
                        div: document.getElementById("kartenElemente"),
                        displaySystem: 'metric',
                        divisions: '2',
                        subdivisions: '4'
                });     

map.addControl(scalebar);

I use OpenLayers 2.9.

Hope that somebody can help me. 

Greetings
Hanno Rahn

------------------------------------------
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
www.iunr.zhaw.ch/geoinformatik

 
 

<<ole0.bmp>>

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to