People is there anybody who has worked with maps. I need to measure a street distance on a web map using javascript (this web map is like an image – so all clicks are like image clicks). The problem is I can measure from two points (straight line with two ends) but when it comes to street lines with more that one segments I’m batling. I know it can be done probably using mouse events (one first mouse click, on mouse move, on mouse click and on mouse double click). The problem is more complicated by the fact that the map has other image buttons of which tells the web map what to happen to it: one of those buttons images is the measure distance button. Others are zoom in button(working), zoom out (working) and pan button(working).