Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/quadkey
Quadkey
Class Quadkey
Index
Constructors
constructor
Properties
key
type
root
type
Zero
Accessors
base10
String
base16
String
base4
Hash
base4
Hash
Label
bounding
Box
center
children
grid
Location
id
parent
siblings
tile
valid
zoom
Methods
children
By
Zoom
clone
equals
geo
Json
get
Grid
Bounding
Box
get
Grid
Location
guess
Zoom
is
In
Bounding
Box
relative
set
Id
set
Key
set
Zoom
toJSON
to
String
from
from
Array
Buffer
from
Base16
String
from
Base4
String
from
Bounding
Box
from
Lng
Lat
from
String
from
Tile
Constructors
constructor
new
Quadkey
(
key
?:
bigint
)
:
Quadkey
Parameters
key
:
bigint
= 0n
Returns
Quadkey
Properties
key
key
:
bigint
= 0n
type
type
:
string
= Quadkey.type
Static
root
root
:
Quadkey
= ...
Static
type
type
:
string
= 'Quadkey'
Static
Zero
Zero
:
Quadkey
= ...
Accessors
base10
String
get
base10String
()
:
string
Returns
string
base16
String
get
base16String
()
:
string
Returns
string
base4
Hash
get
base4Hash
()
:
string
Returns
string
base4
Hash
Label
get
base4HashLabel
()
:
string
Returns
string
bounding
Box
get
boundingBox
()
:
MercatorBoundingBox
Returns
MercatorBoundingBox
center
get
center
()
:
LngLat
Returns
LngLat
children
get
children
()
:
Quadkey
[]
Returns
Quadkey
[]
grid
Location
get
gridLocation
()
:
{
col
:
number
;
row
:
number
;
zoom
:
number
}
Returns
{
col
:
number
;
row
:
number
;
zoom
:
number
}
id
get
id
()
:
bigint
Returns
bigint
parent
get
parent
()
:
undefined
|
Quadkey
Returns
undefined
|
Quadkey
siblings
get
siblings
()
:
Quadkey
[]
Returns
Quadkey
[]
tile
get
tile
()
:
MercatorTile
Returns
MercatorTile
valid
get
valid
()
:
boolean
Returns
boolean
zoom
get
zoom
()
:
number
Returns
number
Methods
children
By
Zoom
childrenByZoom
(
zoom
:
number
)
:
Quadkey
[]
Parameters
zoom
:
number
Returns
Quadkey
[]
clone
clone
()
:
Quadkey
Returns
Quadkey
equals
equals
(
obj
:
Quadkey
)
:
boolean
Parameters
obj
:
Quadkey
Returns
boolean
geo
Json
geoJson
()
:
GeoJson
Returns
GeoJson
get
Grid
Bounding
Box
getGridBoundingBox
(
size
:
number
,
)
:
{
height
:
number
;
left
:
number
;
top
:
number
;
width
:
number
}
Parameters
size
:
number
Returns
{
height
:
number
;
left
:
number
;
top
:
number
;
width
:
number
}
get
Grid
Location
getGridLocation
()
:
{
col
:
number
;
row
:
number
;
zoom
:
number
}
Returns
{
col
:
number
;
row
:
number
;
zoom
:
number
}
Deprecated
use .gridLocation instead
Protected
guess
Zoom
guessZoom
()
:
void
Returns
void
is
In
Bounding
Box
isInBoundingBox
(
boundingBox
:
MercatorBoundingBox
)
:
boolean
Parameters
boundingBox
:
MercatorBoundingBox
Returns
boolean
relative
relative
(
direction
:
string
)
:
Quadkey
Parameters
direction
:
string
Returns
Quadkey
set
Id
setId
(
id
:
bigint
)
:
Quadkey
Parameters
id
:
bigint
Returns
Quadkey
set
Key
setKey
(
zoom
:
number
,
key
:
bigint
)
:
Quadkey
Parameters
zoom
:
number
key
:
bigint
Returns
Quadkey
set
Zoom
setZoom
(
zoom
:
number
)
:
Quadkey
Parameters
zoom
:
number
Returns
Quadkey
toJSON
toJSON
()
:
string
Returns
string
to
String
toString
()
:
string
Returns
string
Static
from
from
(
zoom
:
number
,
id
:
bigint
)
:
Quadkey
Parameters
zoom
:
number
id
:
bigint
Returns
Quadkey
Static
from
Array
Buffer
fromArrayBuffer
(
zoom
:
number
,
id
:
ArrayBuffer
)
:
Quadkey
Parameters
zoom
:
number
id
:
ArrayBuffer
Returns
Quadkey
Static
from
Base16
String
fromBase16String
(
value
:
string
)
:
Quadkey
Parameters
value
:
string
Returns
Quadkey
Static
from
Base4
String
fromBase4String
(
value
?:
string
)
:
Quadkey
Parameters
Optional
value
:
string
Returns
Quadkey
Static
from
Bounding
Box
fromBoundingBox
(
boundingBox
:
MercatorBoundingBox
,
zoom
:
number
)
:
Quadkey
[]
Parameters
boundingBox
:
MercatorBoundingBox
zoom
:
number
Returns
Quadkey
[]
Static
from
Lng
Lat
fromLngLat
(
point
:
LngLatLike
,
zoom
:
number
)
:
Quadkey
Parameters
point
:
LngLatLike
zoom
:
number
Returns
Quadkey
Static
from
String
fromString
(
zoom
:
number
,
id
:
string
,
base
?:
number
)
:
Quadkey
Parameters
zoom
:
number
id
:
string
base
:
number
= 16
Returns
Quadkey
Static
from
Tile
fromTile
(
tile
:
MercatorTile
)
:
Quadkey
Parameters
tile
:
MercatorTile
Returns
Quadkey
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
key
type
root
type
Zero
Accessors
base10
String
base16
String
base4
Hash
base4
Hash
Label
bounding
Box
center
children
grid
Location
id
parent
siblings
tile
valid
zoom
Methods
children
By
Zoom
clone
equals
geo
Json
get
Grid
Bounding
Box
get
Grid
Location
guess
Zoom
is
In
Bounding
Box
relative
set
Id
set
Key
set
Zoom
toJSON
to
String
from
from
Array
Buffer
from
Base16
String
from
Base4
String
from
Bounding
Box
from
Lng
Lat
from
String
from
Tile
XYO Platform SDK - v3.6.9
Loading...
Deprecated
use .gridLocation instead