Projection
Defined in: src/geo/projection/projection.ts:45
An interface the implementations of which are used internally by MapLibre to handle different projections.
Accessors
shaderDefine
Get Signature
get shaderDefine():
string
Defined in: src/geo/projection/projection.ts:72
A #define
macro that is injected into every MapLibre shader that uses this projection.
Example
Returns
string
shaderVariantName
Get Signature
get shaderVariantName():
string
Defined in: src/geo/projection/projection.ts:65
Name of the shader projection variant that should be used for this projection. Note that this value may change dynamically, for example when globe projection internally transitions to mercator. Then globe projection might start reporting the mercator shader variant name to make MapLibre use faster mercator shaders.
Returns
string
vertexShaderPreludeCode
Get Signature
get vertexShaderPreludeCode():
string
Defined in: src/geo/projection/projection.ts:83
Vertex shader code that is injected into every MapLibre vertex shader that uses this projection.
Returns
string