[Mapserver-users] Measure tool

Steve Lime steve.lime at dnr.state.mn.us
Wed Jan 14 16:33:59 EST 2004


Actually I'd ask folks for help implementing a measure tool for dbox.js.
The way to do it is pretty well known. Since you can't draw a non
horizontal or vertical line you have to approximate it using a bunch of
vertices (DHTML layers) placed along a line between the initial click
and mouse position. Shouldn't be hard to do, I've seen several examples,
but I've not had the time to do it myself. I'd really like to keep the
two in sync...

Steve

>>> Steve McCrone <ms57 at streamyx.com> 1/14/2004 8:06:44 AM >>>
I am working with the "DHTML rubber band box" sample, found at  - 
  http://maps.dnr.state.mn.us/mapserver_demos/workshop 

 I wish to implement a mouse mesuring tool that will return segment and
cumulative distances. I see the JBox java applet can do this. 

The above example comes with a js file "DBox.js" which produces a
dynamic rectangle for zoom in. Would you suggest changing entirely over
to the JBox applet to achieve rubber-band zoom, mouse coordiantes and
meaure tool? 



Thanks



More information about the mapserver-users mailing list