Fix visibility check on map view. Fixes #463
The following check was failing on the first load, so autozoom didn't
work:
3f4a30e054/src/view.map.js (L232)
This commit is contained in:
parent
8bdd837d26
commit
e15a3b61d2
@ -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