John, I will try to clarify things a little.
On 8/ 2/07, John Roberts <[EMAIL PROTECTED]> wrote: > Dear Andreas > I have set MapBuilder > up but really my understanding of how tools work is not good. I have been > able to insert tools into the config.xml file and I understand the concept of > models, widgets & tools and how to reference these in the html file. > > However, I don't understand how the tools/widgets relate to the xsl > stylesheets & .js files. In Mapbuilder, widgets usually paint parts of models. This is done by transforming the model into HTML. And for that, xsl stylesheets are used. For tools, xsl files are more used as a template, in which the tool inserts parameters. In the case of a wfs GetFeatureInfo, the tool inserts stuff like x/y coordinates, server url and such into the xsl. Take a look at the config file of demo/mapViewer. There you will see a GetFeatureInfo widget and a WebServiceRequest tool. In principle, you just have to modify these two and maybe a xsl file in tool/xsl. I suppose you want to do a wfs GetFeatureInfo. In this case, your WebServiceRequest tool should have a property <requestName>wfs:GetFeatureInfo</requestName> Then it will use tool/xsl/wfs_GetFeatureInfo.xsl as template for the request. I would recommend you just take the mapViewer example and modify the config to fit your needs. This should be easier to start with than starting from scratch. 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
