Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / Grid
abstract
Gridnew Grid(
type
,is_conformal
,ni
,nj
):Grid
• type: GridType
• is_conformal: boolean
• ni: number
• nj: number
readonly
is_conformal:boolean
readonly
ni:number
readonly
nj:number
readonly
type:GridType
abstract
copy(opts
?):Grid
• opts?
• opts.ni?: number
• opts.nj?: number
abstract
getEarthCoords():EarthCoords
EarthCoords
abstract
getGridCoords():GridCoords
GridCoords
abstract
getThinnedGrid(thin_x
,thin_y
):Grid
• thin_x: number
• thin_y: number
getVectorRotationTexture(
gl
):object
• gl: WebGLAnyRenderingContext
object
rotation:
WGLTexture
getWGLBillboardBuffers(
gl
,thin_fac
,max_zoom
):Promise
<object
>
• gl: WebGLAnyRenderingContext
• thin_fac: number
• max_zoom: number
Promise
<object
>
texcoords:
WGLBuffer
vertices:
WGLBuffer
getWGLBuffers(
gl
):Promise
<object
>
• gl: WebGLAnyRenderingContext
Promise
<object
>
cellsize:
WGLBuffer
texcoords:
WGLBuffer
vertices:
WGLBuffer
abstract
transform(x
,y
,opts
?): [number
,number
]
• x: number
• y: number
• opts?
• opts.inverse?: boolean
[number
, number
]