Changeset 6401
- Timestamp:
- 02/28/08 16:09:28 (11 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Format/WMC.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Format/WMC.js
r6174 r6401 88 88 var context = this.parser.read(data, options); 89 89 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 } 92 97 } 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; 94 100 } 95 101 return map;
