gmestzoom: Estimates zoom parameter for google maps to fit points...

View source: R/gmestzoom.R

gmestzoomR Documentation

Estimates zoom parameter for google maps to fit points Calculation source https://stackoverflow.com/questions/6048975/google-maps-v3-how-to-calculate-the-zoom-level-for-a-given-bounds

Description

Estimates zoom parameter for google maps to fit points Calculation source https://stackoverflow.com/questions/6048975/google-maps-v3-how-to-calculate-the-zoom-level-for-a-given-bounds

Usage

gmestzoom(ne_coord, sw_coord)

Arguments

ne_coord

vector of longitude, latitude for north-east corner of box

sw_coord

vector of longitude, latitude for south-west corner of box

minzm

minimal value to return, deafult of 18

Value

integer value of zoom to use in a google maps api call


iain-t-bennett/photoTools documentation built on March 31, 2022, 9:06 p.m.