File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,20 @@ function project([lon, lat]) {
191191}
192192
193193function geoToPath (geometry ) {
194+ // ----------------------------------------------------------------------------------------------
195+ // NOTE: Should we decide to use d3-geo in the future:
196+ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
197+ // if (projection.value === 'globe') {
198+ // const globeProj = geoOrthographic()
199+ // .translate([sizes.value.width / 2, sizes.value.height / 2])
200+ // .scale(Math.min(sizes.value.width, sizes.value.height) / 2 * 0.95)
201+ // .rotate([-center.value[0], -center.value[1]])
202+ // .clipAngle(90);
203+ // const pathGen = geoPath(globeProj);
204+ // return pathGen(geometry);
205+ // }
206+ // ----------------------------------------------------------------------------------------------
207+
194208 const drawPoly = coords =>
195209 coords .map (
196210 ring => {
You can’t perform that action at this time.
0 commit comments