Roald,

there are some constructs that rely on layer names being keys in
MapPaneOL.oLlayers, like the following snippet from
lib/widget/OverviewMap.js

    if (objRef.layerNames) {
       for (var i = 0; i < objRef.layerNames.length; i++) {
        for (var j in map.mbMapPane.oLlayers) {
          if (objRef.layerNames[i] == j) {
            // Found it, add a clone to the layer stack
            options.layers.push(objRef.getClonedLayer(map.mbMapPane.oLlayers[j],
isBaseLayer));
            isBaseLayer = false;
          }
        }
      }
    }

I do not know how many of those there are in other files, but those
will definitely be broken by your changes.

So may I please ask you to look for all references to oLlayers in the
lib folder, and check if there are constructs like the one above?

Thanks,
Andreas.

-------------------------------------------------------------------------
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