I guess U are right, defautModelUrl sounds great!
But, this brings another problem ...
I have an xml file with some data which displays in a <div id="data">
on the main html file.
I would like to hide/show the layers of the map by a click on this data.
2 solutions:
1. I create another model in the config file with defaultURL pointing
to my source file for xslt rendering --> will I be able to hide/show
the layers of the other model from the new one?
2. My data stays within this model --> is there an xml tag within
<widget> </widget> to specify the source?
Thanks
Greg
Le 06-juil.-07 à 04:29, Diez, Matthew a écrit :
Shouldn't you be looking at the defaultModelUrl param?
For example:
<defaultModelUrl>../data/context/metacartaWorldMap.xml</
defaultModelUrl>
The Legend widget uses that for its context.
Matthew D. Diez
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of
Grégory Babusiaux
Sent: Thu 7/5/2007 7:04 PM
To: Linda Derezinski
Cc: [email protected]
Subject: Re: [Mapbuilder-devel] simple question about config.xml
Thanks, but I think that's not it ...
In the config.xml file, which is accessed through the main html (ok),
you DON'T have the context source file. All you have is the path to
the xsl file, but not to the source file.
you have this: (config.xml extract)
<Legend id="contextLegend">
<htmlTagId>legend</htmlTagId>
<stylesheet>./Legend2.xsl</stylesheet>
</Legend>
how does map builder know that the source file to be rendered in html
is in fact context.xml??? (containing the OWS context with the layers)
Is this clear? :S Sorry if not :S
greg
Le 06-juil.-07 à 01:41, Linda Derezinski a écrit :
> Because of this information located in the <head> element of
> the .html file
> <script>
> // URL of Mapbuilder configuration file.
> var mbConfigUrl='config.xml';
> </script>
>
> -Linda
>
> On 7/5/07 6:56 PM, "Grégory Babusiaux" <[EMAIL PROTECTED]> wrote:
>
>> Hi everybody,
>>
>> There's one little thing I can't understand yet.
>>
>> in the config.xml file, let's say you have a legend widget. You
>> can find the ID, the stylesheet and the htmlIdTag.
>>
>> With this you know that the result of the xsl processing will go
>> between the div tag corresponding to the ID.
>>
>>
>> My question is: how does mapbuilder know that the xml source file
>> is in this case the context.xml file?
>>
>>
>>
>> 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
>
Grégory Babusiaux
Tel: 02/675.14.68
Gsm: 0472/644.597
Mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
WEB: www.gregorybabusiaux.be
IEM CONFIDENTIAL INFORMATION PLEASE READ OUR NOTICE:
http://www.iem.com/e_mail_confidentiality_notice.html
Effective July 15, 2007 IEM Headquarters will have a new physical
and mailing address:
8550 United Plaza Blvd, Suite 501
Baton Rouge, LA 70809
If you should have any questions, please feel free to contact us at
225.952.8191
Grégory Babusiaux
Tel: 02/675.14.68
Gsm: 0472/644.597
Mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
WEB: www.gregorybabusiaux.be
-------------------------------------------------------------------------
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