Skip to content

Commit

Permalink
geo layer fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergen committed Sep 19, 2012
1 parent 87a24f4 commit d8eb037
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions web/js/app/models/editor.model.layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
{
var a = _.extend( this.toJSON().attr, newAttr, {model:null} );
this.set( 'attr' , a );
if( silent != true ) this.save();
this.trigger('update');
this.save();
if( silent != true ) this.trigger('update');
this.trigger('change');
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,7 @@ Use this.model.get('attr')[my_setting] instead!!!
lat : newCenter.lat(),
lng : newCenter.lng()
})
_this.model.trigger('update');


//_this.model.trigger('update');
});


Expand Down
3 changes: 2 additions & 1 deletion web/js/plugins/layers/geo/geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
{
console.log(' GEO INIT')
var _this = this;
this.model.on('update', this.updateVisual, this)
},

render : function()
Expand Down Expand Up @@ -201,7 +202,7 @@
lat : _this.streetview.getPosition().lat(),
lng : _this.streetview.getPosition().lng()

})
},true)
}


Expand Down

0 comments on commit d8eb037

Please sign in to comment.