[Mapserver-users] Accessing the cumulative distance value outside of the status bar

Steve McCrone mccrone at pc.jaring.my
Sun Jan 12 02:14:56 PST 2003


After looking at the java source of the 'Rosa2000.java' I see that there is
not function
that returns the cumulative distance text that can be called by a javascript
function.

So, am I correct in saying that there is not currently a function in the
rosa applet that allows
the cumulative distance string to be accessed?

Not being a java developer would it be possible to Add a function
in the Rosa2000.java code to return the parameter m_strMsg,
which i beleive is the string variable that holds the message
displayed in the status bar. See below:

protected void readPararam()
    {
        // Get the message.
        m_strMsg = m_applet.getParameter( kstrDistanceMsgParam );
      ...
    }

In the 'Rosa2000.java' have something like -

public void GetDistMsg()
    {
        return m_strMsg;
    }






More information about the MapServer-users mailing list