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