Merge pull request #464 from okfn/fix-autozoom
Fix visibility check on map view. Fixes #463
This commit is contained in:
commit
7c0edb54fe
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user