Darren,
On Nov 6, 2007 11:26 AM, Graham, Darren F <[EMAIL PROTECTED]> wrote:
> Thanks everyone, I've been reading this thread intently and got the
> measurement tool working, but is there a way to reset the widget i.e. "0
> km" and clear the line(s) without completely reloading the page?
To reset the value to "0 km" is not possible without custom code, but
when switching to a different tool, the widget output will be cleared.
If you want to reset the value to "0 km", you have to say
config.objects["measureTemplate"].setParam("showDistance", 0)
This assumes that you have a model with id "measureTemplate".
If you want to clear the line manually, you have to say
config.objects["measureTemplate"].setParam("showDistance", null)
Regards,
Andreas.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users