
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@placemarkio/geo-viewport
Advanced tools
On npm as @placemarkio/geo-viewport
.
geo-viewport development is supported by 🌎 placemark.io
Turns bounding boxes / extents into centerpoint & zoom combos for static maps.
This is a maintained fork of the Mapbox repository, with the following changes:
0.5.0
Most of the improvements to this package are internal, but the viewport
method has changed.
In the Mapbox version, it grew quite a few parameters and is now:
viewport(bounds, dimensions, minzoom, maxzoom, tileSize, allowFloat, allowAntiMeridian)
In this fork this has changed so that there is less remembering required. The method signature is:
// Showing default values
viewport(bounds, dimensions, {
minzoom: 0,
maxzoom: 20,
tileSize: 256,
allowFloat: false,
allowAntiMeridian: false
})
// You can omit any options or the options array:
viewport(bounds, dimensions);
// Just one option:
viewport(bounds, dimensions, {
tileSize: 256
})
FAQs
convert between viewports and extents
The npm package @placemarkio/geo-viewport receives a total of 4,587 weekly downloads. As such, @placemarkio/geo-viewport popularity was classified as popular.
We found that @placemarkio/geo-viewport demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.