Skip to content

Commit

Permalink
Merge branch 'alexspeller-update-popup-after-render'
Browse files Browse the repository at this point in the history
  • Loading branch information
gabesmed committed Dec 10, 2014
2 parents 0b8a8e8 + 6621ec6 commit ddabc2e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
15 changes: 11 additions & 4 deletions dist/ember-leaflet.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Version: v0.6.0-6-gda14abf
// Last commit: da14abf (2014-12-05 18:58:14 -0500)
// Version: v0.6.0-17-g0b8a8e8
// Last commit: 0b8a8e8 (2014-12-10 15:52:41 -0800)


(function() {
Expand Down Expand Up @@ -494,7 +494,7 @@ EmberLeaflet.MapView = Ember.View.extend(EmberLeaflet.ContainerLayerMixin, {
Ember.assert("Center must be set before creating map, was " +
this.get('center'), !!this.get('center'));
Ember.assert("Zoom must be set before creating map, was " +
this.get('zoom'), !!this.get('zoom'));
this.get('zoom'), !isNaN(parseInt(this.get('zoom'), 10)));
this.willCreateLayer();
this.propertyWillChange('layer');
this._layer = L.map(this.get('elementId'), this.get('options'));
Expand Down Expand Up @@ -595,7 +595,7 @@ EmberLeaflet.TileLayer = EmberLeaflet.Layer.extend({
});

EmberLeaflet.DefaultTileLayer = EmberLeaflet.TileLayer.extend({
tileUrl: 'http://a.tiles.mapbox.com/v3/examples.map-zr0njcqy/{z}/{x}/{y}.png'
tileUrl: '//a.tiles.mapbox.com/v3/examples.map-zr0njcqy/{z}/{x}/{y}.png'
});

})();
Expand Down Expand Up @@ -676,6 +676,13 @@ EmberLeaflet.PopupMixin = Ember.Mixin.create({
var self = this;
this._popupView._insertElementLater(function() {

This comment has been minimized.

Copy link
@pedrokost

pedrokost Jan 22, 2015

_insertElementLater seems to have been removed in Ember 1.8 (#76). How is this still supposed to be working?

self._popupView.$().appendTo(self._popup._contentNode);
self._popup.update();
});

// After the view has rendered, call update to ensure
// popup is visible with autoPan
Ember.run.schedule('afterRender', this, function() {
self._popup.update();
});
},

Expand Down
Loading

0 comments on commit ddabc2e

Please sign in to comment.