Function
shapeGenerator
(path, field, pointRadius)
Source from the content-addressed store, hash-verified
| 131381 | } |
| 131382 | }); |
| 131383 | function shapeGenerator(path, field, pointRadius) { |
| 131384 | const shape = pointRadius == null ? (_)=>path(field(_)) : (_)=>{ |
| 131385 | var prev = path.pointRadius(), value = path.pointRadius(pointRadius)(field(_)); |
| 131386 | path.pointRadius(prev); |
| 131387 | return value; |
| 131388 | }; |
| 131389 | shape.context = (_)=>{ |
| 131390 | path.context(_); |
| 131391 | return shape; |
| 131392 | }; |
| 131393 | return shape; |
| 131394 | } |
| 131395 | /** |
| 131396 | * GeoJSON feature generator for creating graticules. |
| 131397 | * @constructor |
Tested by
no test coverage detected