[OpenLayers-Dev] Web Map Context confusions

Trond Michelsen trondmm-openlayers at crusaders.no
Wed Jul 8 10:13:30 EDT 2009


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

    mergeContextToMap: function(context, map) {
        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

More information about the Dev mailing list