Hi.

I'm looking at OpenLayers.Format.WMC, and I'm a little bit confused
about the mergeContextToMap function.

    mergeContextToMap: function(context, map) {
        map.addLayers(context.layers);
        return map;
    },

Is this even useful? Just adding layers to the map without checking if
they're already there? Shouldn't merge alter the state of existing
layers, and then add whatever new layers the context document offers?

I'll admit I'm still a bit confused about the standard itself, though,
so I may have misunderstood something.

-- 
Trond Michelsen
_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev

Reply via email to