Allow no zoom for static map request #250

merged 2 commits into from Oct 8, 2013


None yet
3 participants

bjudson commented Oct 7, 2013

This allows option zoom: false for static maps. If no lat / lng is set, and multiple markers are present, Google will determine appropriate zoom, lat & lng to show all markers. The default zoom of 15 had prevented this desirable behavior.

@hpneo hpneo added a commit that referenced this pull request Oct 8, 2013

@hpneo hpneo Merge pull request #250 from bjudson/master
Allow no zoom for static map request

@hpneo hpneo merged commit 0bb79eb into hpneo:master Oct 8, 2013

larsomator commented on lib/gmaps.static.js in 89065fd Jul 6, 2016 edited

This seems wrong to me. I think it should be

if (!options.zoom || options.zoom === false) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment