UNPKG
slippy-bbox
Version:
latest (1.0.0)
1.0.0
calculate a bounding box for a slippy map (x,y,zoom) coordinate
slippy-bbox
/
example
/
bbox.js
4 lines
(3 loc)
•
117 B
JavaScript
View Raw
1
2
3
4
var
slippyBBox =
require
(
'../'
)
var
bbox =
slippyBBox
(
2
,
14
,
5
)
// x,y,zoom
console
.
log
(bbox)
// west,south,east,north