Nevermind, a script was misplaced in my code.

sorry to bother

greg
Le 10-juil.-07 à 23:55, Grégory Babusiaux a écrit :

Hi, I still can't display my data on GML viewer though I followed all of your advices.

here is the code:

extract of HTML file:
[...]
  <head>
    <title></title>
<link rel='StyleSheet' type='text/css' href='lib/skin/ default/demoStyles.css'/>
        <script src="OpenLayers.js"></script>
     <script>
      // URL of Mapbuilder configuration file.
      var mbConfigUrl='belgiumConfig.xml';

    </script>
    <script type="text/javascript" src="lib/Mapbuilder.js"></script>
  </head>
  <body onload="mbDoLoad()" >
  <div id="header">
<h1><a href="http://communitymapbuilder.org";>MapBuilder</a> GML Viewer - Belgique</h1>
  </div>
  <div id="mainbody">
<div id="data"></iframe> --></div> HERE IS WHERE I WANT TO INSERT MY DATA
    <div id="mainMapPane">
      <noscript>
        this page requires Javascript to be enabled
      </noscript>
    </div>
 [...]

extract of config.xml:

<MapbuilderConfig version="0.2.1" id="simpleTemplate" xmlns="http:// mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/ 2001/XMLSchema-instance" xsi:schemaLocation="http:// mapbuilder.sourceforge.net/mapbuilder lib/schemas/config.xsd">
  <models>
    <OwsContext id="mainMap">
      <defaultModelUrl>Belgium/belgiumContext.xml</defaultModelUrl>
      <widgets>
        <MapPaneOL id="mainMapWidget">
          <htmlTagId>mainMapPane</htmlTagId>
          <mapContainerId>mainMapContainer</mapContainerId>
        </MapPaneOL>
        <Legend id="contextLegend">
          <htmlTagId>legend</htmlTagId>
          <stylesheet>./Legend2.xsl</stylesheet>
        </Legend>
      </widgets>
      <tools>
        <AoiMouseHandler id="mainAoi"/>
        <DragPanHandler id="mainDragPan">
          <enabled>false</enabled>
        </DragPanHandler>
      </tools>
    </OwsContext>
    <Model id="dataRep">
      <defaultModelUrl>./arbre/data.xml</defaultModelUrl>
      <widgets>
      <Widget id="dataTree">
        <htmlTagId>data</htmlTagId>
        <stylesheet>./arbre/data.xsl</stylesheet>
        <targetModel>mainMap</targetModel>
      </Widget>
      </widgets>
    </Model>
  </models>
  <widgets>
  </widgets>
  <skinDir>lib/skin/default</skinDir>

  <!-- relative to the skin dir -->
  <widgetTextUrl>widgetText.xml</widgetTextUrl>
</MapbuilderConfig>


config.js load scripts Model.js and Widget.js correctly

Xsl translation works great and paths to files are correct.

Instead of display, the rendering is a white space as if nothing was in the div.

thanks for your precious help

greg





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to