Skip to content

Commit

Permalink
auto-center map even if settings.zoom is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrourke committed Dec 15, 2014
1 parent 472bd52 commit 26d3c9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ define([
self._map.zoomTo(settings.zoom);
}

if (typeof bounds !== "undefined" && bounds !== null && settings.zoom === null && settings.center === null) {
if (typeof bounds !== "undefined" && bounds !== null && settings.center === null) {
self._map.setCenter(bounds.getCenterLonLat());
}

Expand Down

0 comments on commit 26d3c9b

Please sign in to comment.