The id's for all MapBuilder objects are assigned in the config file
using the id attribute on the object, e.g.:
...
<models>
<OwsContext id="mainMap">
<defaultModelUrl>tasmania/TasmaniaContext.xml</defaultModelUrl>
...
here the id will be "mainMap" and it can be referenced in JavaScript as
config.objects.mainMap.
Mike
Grégory Babusiaux wrote:
> Hi, I'm currently developing my version of map Builder gml viewer.
>
> So far, I have the map, and some xml data in a separate div displayed
> through an xsl stylesheet.
>
> that being done, I would like to clic on the data, and display the
> correspondant layer on the map.
>
> in order to do this, I have to access to setHidden function defined in
> OwsContext.js
>
> to call this function, i need to know the context name, which is
> config.objects."$modelId".
>
> I would like to know where i can find this modelId value. It seems
> it's a common value for all widgets but my xml doc isn't defined as a
> widget.
>
> Where can I find this value?
>
> Thanks for your help so far
>
> 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
>
-------------------------------------------------------------------------
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