have a look at carto.net (http://www.carto.net/papers/svg/tuerlersee/
currently ASV3 or ASV6 only). There, a measuring tool is implemented.
I do not know an automatic scale bar, but you can implement a simple
rectangle and scale the width according to your viewbox.
> Does anybody know where I can find a code which would allow me to
> implement a Measuring tool in my SVG map and also a code which could
> automatically display the scale of the map?
> Thank you.
Institute of Cartography
tel: ++41 44 633 3031
fax: ++41 44 633 1153