Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zoom: "fit" not working when only passing addresses #6

Open
aketchm opened this issue Sep 30, 2011 · 2 comments
Open

zoom: "fit" not working when only passing addresses #6

aketchm opened this issue Sep 30, 2011 · 2 comments

Comments

@aketchm
Copy link

aketchm commented Sep 30, 2011

var map = $("#map_canvas");

map.gMap({
markers: [
{
address: "huron, ohio 44839"
},
{
address: "sandusky, ohio 44870"
},
{
address:" cincinatti, ohio"
}

    ],
    zoom: "fit"

// latitude: "fit",
// longitude: "fit",
});

wondering why if i pass in lat/long it zooms correctly, but if addresses are passed in it breaks and only zooms to the last level.

is there a workaround for this beyond passing the address to the geocoder and plugging the lat/long back into the array?

@fridek
Copy link
Owner

fridek commented Sep 30, 2011

I will fix that, but just to be clear - using addresses instead of latlng is WRONG ;)

@aketchm
Copy link
Author

aketchm commented Sep 30, 2011

basically building a form where a business could have multiple branches (shown on the map) and the user would put in their address to get directions to the closest one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants