Skip to main content

MAX_GREAT_CIRCLE_STEPS

The most pieces one segment is cut into. It bounds the work for a very long segment seen close up, where most of it is off the screen anyway. At normalised zoom 13, where the engine has finished blending the globe into a flat map, a half-turn segment needs 908 pieces to stay within GLOBE_CHORD_TOLERANCE_PX, so the cap never shortens a curve the globe draws.

This is a constant exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { MAX_GREAT_CIRCLE_STEPS } from "@mapcairn/core";

MAX_GREAT_CIRCLE_STEPS = 1024

Source: packages/core/src/globe/greatCircle.ts:23