JBOX - distance measuring

Alexandre Abramides alexandre at ACQUASOFTWARE.COM.BR
Tue Mar 7 11:55:42 EST 2006


Anyone can help me?

I,m trying to use the distance measuring function from jBox.
This is the javascript function in
http://mapserver.gis.umn.edu/docs/howto/jbox

function measure_handler(name, s, t, n, a) {
    // c = 1 / 72dpi / 12inches_per_foot * 1.0003state_plane_scale_factor
    var c = 0.0011577546296296; // constant
    var f = [scale] * c; // scale factor
    if ((s>0) || (t>0)) {
        defaultStatus = "This segment = " + s*f + ", Total = "
        + t*f + ", Number of vertices = " + n ;
    }
}

and I don´t know what else i have to do.
Should i add another "mode" to my html template? How do I use this function
properly?

[]
Abramides.



More information about the mapserver-users mailing list