googlemaps-utils
Google Maps utilities for;
- calculating bounds - get the bounds of a static map API request.
- calculating zoom - determine the zoom level to use for a given bounds.
Installation
$ npm install -g googlemaps-utils
Examples
The following examples show you how to use googlemaps-utils.
var gmu = require('googlemaps-utils');
var bounds = gmu.calcBounds(-26.6812783, 153.1215971, 15, 649, 480);
var zoom = gmu.calcZoomForBounds([153.10767107079468, -26.690480881985657, 153.13552312920532, -26.67207497516463], 649, 480);
Running tests
$ npm test