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?

Many thanks in advance

Darren Graham 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Andreas Hocevar
Sent: 01 November 2007 22:07
To: Anakreon Mentis
Cc: [email protected]
Subject: Re: [Mapbuilder-users] Measurement widget

Your config looks a little bit messy. The error stack tells me that you
do not have a featureXpath property. Again, please have a look at the
config of the complete example I mentioned in my previous posting.

Regards,
Andreas.

2007/11/1, Anakreon Mentis <[EMAIL PROTECTED]>:
> I did as you intructed but there is still an error.
>
> Just in case I have misconfigured the widget, the begining of the 
> config file is:
>       <models>
>               <Context id="mainMap">
>                       <defaultModelUrl>ekby.xml</defaultModelUrl>
>                       <model>
>                         <FeatureCollection id="measureTemplate">
>                               <widgets>
>                                 <ShowDistance id='showDistance'>
>
<stylesheet>../mapbuilder.src/lib/widget/ShowDistance.xsl</stylesheet>
>                                 </ShowDistance>
>                               </widgets>
>                         </FeatureCollection>
>                       </model>
>
> The rest is as you instructed.
> The error stack is:
> widgetNode.selectSingleNode("mb:featureXpath") has no properties 
> EditButtonBase(measurement, Object doc=document 
> url=config.xml)EditButtonBase.js (line 32) Measurement(measurement, 
> Object doc=document url=config.xml)Measurement.js (line 22) 
> createObject(measurement)ModelBase.js (line 385) 
> loadObjects("mb:widgets/*")ModelBase.js (line 405) parseConfig(Object 
> doc=document url=config.xml)ModelBase.js (line 416) 
> mapbuilderInit()Mapbuilder.js (line 233)
>
>

------------------------------------------------------------------------
-
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

-------------------------------------------------------------------------
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

Reply via email to