Hi List,

I've just committed my changes (r3607) in the trunk. This should fix
MAP-6.
Please update your svn and see if all apps and examples still work.

Kind regards,

Roald

On Mon, 2007-11-12 at 14:36 +1100, Roald de Wit wrote:
> Dear list,
> 
> For our CGDI-IP project (that has finished) we run into problems with
> several layers sharing the same name. For the components that we used I
> changed all references to 'layerName' into references to 'layerId' and
> rewrote the [model].getLayer method in OWS context. That solved the
> problems.
> 
> I propose to make the following changes in the trunk. These will resolve
> the following long-standing issue:
> http://jira.codehaus.org/browse/MAP-6. Please give your feedback.
> 
> 1) Change refences from layerName to layerId in the following files:
> - model/OWSContext.js
> - model/Context.js
> - widget/*.js (where layerName is used)
> - widget/*.xsl (where layerName is used) 
> 
> 2) Change .getLayer in OWSContext.js so it looks for a layer id first.
> 
> 3) Change in as may places as time permits lookups for layers from:
>   [model].doc.selectSingleNode(.... layerName...) 
> to 
>   [model].getLayer(layerId)
> 
> 4) Create a mechanism to generate a unique id for every layer that
> doesn't have one. I'd like to hear your opinion on whether or not to do
> this and where and how to generate this id (in XSL or in Javascript).
> 
> The changes in the code will have a failsafe mechanism to fallback to
> layerName if layerId does not exist (for layers that don't have a
> layerId).
> 
> The id will be part of the new OWS specfication (see email from Cameron
> to the list at Oct 25 and this example:
> http://www.ogcnetwork.net/schemas/owc/0.2.1/owsContext.xml)
> 
> I'm planning on starting my work tomorrow and hope to get some feedback
> from the developers.
> 
> Kind regards,
> 
> Roald
> 
-- 
Roald de Wit
Software Engineer
[EMAIL PROTECTED]

Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/
-- 
Roald de Wit
Software Engineer
[EMAIL PROTECTED]

Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to