
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@alvarcarto/mosaic
Advanced tools
A tool to stich map tiles to form a bigger map. Give it a URL template and bounding box, it will generate a map for you.
npm install -g @alvarcarto/mosaic
const fs = require('fs');
const { tile } = require('@alvarcarto/mosaic');
tile({
// Parameters below are required
width: 700,
height: 1000,
template: 'http://yourtileserver.com/{z}/{x}/{y}.png',
swLat: 32.473,
swLng: -15.594,
neLat: 45.298,
neLng: 8.056,
})
.then((image) => {
// PNG as Buffer
fs.writeFileSync(`map.png`, image, { encoding: null });
});
This module uses Mapnik's GROW_BBOX method to fit the given coordinates to given width and height. The implementation in Mapnik's repository: https://github.com/mapnik/mapnik/blob/e9ebc938e08686c8b5364dbd61827dc9d68589d5/src/map.cpp#L587.
Commit all changes.
Use np to automate the release:
np
Edit GitHub release notes.
MIT
FAQs
Stitch map tiles to form a bigger map image
The npm package @alvarcarto/mosaic receives a total of 18 weekly downloads. As such, @alvarcarto/mosaic popularity was classified as not popular.
We found that @alvarcarto/mosaic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.