(type,args)
| 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 | } |
no test coverage detected