Merge pull request #464 from okfn/fix-autozoom

Fix visibility check on map view. Fixes #463
This commit is contained in:
Rufus Pollock 2015-02-24 11:02:43 +00:00
commit 7c0edb54fe

View File

@ -53,7 +53,7 @@ my.Map = Backbone.View.extend({
initialize: function(options) {
var self = this;
this.visible = true;
this.visible = this.$el.is(':visible');
this.mapReady = false;
// this will be the Leaflet L.Map object (setup below)
this.map = null;