MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / parseOption

Method parseOption

src/openlayers/overlay/Turf.js:281–297  ·  view source on GitHub ↗
(type,args)

Source from the content-addressed store, hash-verified

279 }
280
281 parseOption(type,args){
282 var result = [];
283 var tempArgs = this.turfOptionMap[type];
284 tempArgs.map(function(key){
285 if(key instanceof Object){
286 var options = key;
287 Object.keys(options).forEach(function(k){
288 options[k]=args[k]
289 })
290 result.push(options);
291 }else{
292 result.push(args[key])
293 }
294 return args;
295 })
296 return result;
297 }
298
299}

Callers 2

processMethod · 0.95
TurfLayer.jsFile · 0.80

Calls 3

mapMethod · 0.80
forEachMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected