Trigger map.updateSize() via a custom event

This commit is contained in:
John Firebaugh 2012-09-07 12:40:00 -07:00
parent b507f6c887
commit 7ff77d9d3d
2 changed files with 5 additions and 4 deletions

View file

@ -71,6 +71,10 @@ function createMap(divName, options) {
});
map.addLayer(markers);
$("#" + divName).on("resized", function () {
map.updateSize();
});
return map;
}