Skip to content

Commit

Permalink
Merge pull request #15 from gpbl/hot-fix/add-fitBounds
Browse files Browse the repository at this point in the history
Add fitBounds
  • Loading branch information
tomchentw committed Dec 16, 2014
2 parents 9113cd4 + 6bd3ae5 commit 9a32aff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ MapSpec = {
});
},

fitBounds:function (latLngBounds) {
ensure_map_created(this, function(map) {
map.fitBounds(latLngBounds);
});
},

getInitialState:function () {
return {
/* [null, false, true] => ["init", "api loaded", "done"] */
Expand Down

0 comments on commit 9a32aff

Please sign in to comment.