Skip to content

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

@aketchm

Description

@aketchm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions