()
| 3073 | d3.geo.graticule = function() { |
| 3074 | var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5; |
| 3075 | function graticule() { |
| 3076 | return { |
| 3077 | type: "MultiLineString", |
| 3078 | coordinates: lines() |
| 3079 | }; |
| 3080 | } |
| 3081 | function lines() { |
| 3082 | return d3.range(Math.ceil(X0 / DX) * DX, X1, DX).map(X).concat(d3.range(Math.ceil(Y0 / DY) * DY, Y1, DY).map(Y)).concat(d3.range(Math.ceil(x0 / dx) * dx, x1, dx).filter(function(x) { |
| 3083 | return Math.abs(x % DX) > ε; |