Skip to content

Commit

Permalink
Merge pull request #153 from ptrourke/issue/149/autocenter-map
Browse files Browse the repository at this point in the history
Issue/149/autocenter map
  • Loading branch information
ptrourke committed Dec 16, 2014
2 parents 2c7f07d + 26d3c9b commit f2d4db5
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 f2d4db5

Please sign in to comment.