Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
googlemaps-utils
Advanced tools
Google Maps utilities for;
$ npm install -g googlemaps-utils
The following examples show you how to use googlemaps-utils.
var gmu = require('googlemaps-utils');
// Static map we want the bounds for
// http://maps.googleapis.com/maps/api/staticmap?center=-26.6812783, 153.1215971&zoom=15&size=649x480&sensor=false
// calculate the bounds for a given lonlat, zoom, width and height
var bounds = gmu.calcBounds(-26.6812783, 153.1215971, 15, 649, 480);
/*
{ bounds: [
153.10767107079468,
-26.690480881985657,
153.13552312920532,
-26.67207497516463
],
bbox: '153.10767107079468,-26.690480881985657,153.13552312920532,-26.67207497516463',
top: -26.67207497516463,
right: 153.13552312920532,
bottom: -26.690480881985657,
left: 153.10767107079468
}
*/
// calculate the zoom for a given bounds (l, b, r, t), width and height
var zoom = gmu.calcZoomForBounds([153.10767107079468, -26.690480881985657, 153.13552312920532, -26.67207497516463], 649, 480);
// 15
$ npm test
FAQs
A collection of utility functions for Google Maps.
The npm package googlemaps-utils receives a total of 2 weekly downloads. As such, googlemaps-utils popularity was classified as not popular.
We found that googlemaps-utils 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.