OpenLayers OpenLayers

Changeset 6401

Show
Ignore:
Timestamp:
02/28/08 16:09:28 (11 months ago)
Author:
tschaub
Message:

Though the structure is not something we promise will not change, the internal context object is now available to those who parse WMC. r=crschmidt (closes #1370)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Format/WMC.js

    r6174 r6401  
    8888        var context = this.parser.read(data, options); 
    8989        var map; 
    90         if(options.map instanceof OpenLayers.Map) { 
    91             map = this.mergeContextToMap(context, options.map); 
     90        if(options.map) { 
     91            this.context = context; 
     92            if(options.map instanceof OpenLayers.Map) { 
     93                map = this.mergeContextToMap(context, options.map); 
     94            } else { 
     95                map = this.contextToMap(context, options.map); 
     96            } 
    9297        } else { 
    93             map = this.contextToMap(context, options.map); 
     98            // not documented as part of the API, provided as a non-API option 
     99            map = context; 
    94100        } 
    95101        return map;