Miguel Andrade

Results 174 comments of Miguel Andrade

@jamesdixon As a hint, remember that each child layer has `controller` set to the components instance. Try to: - Extend the layers separately (you can even put them in separate...

@localyost consider using ember-leaflet 2.0 - www.ember-leaflet.com

You're suggesting having a link-to inside a popup? Or clicking a popup would trigger a transition to a different route?

The reasoning would be to change the model through the router and make the marker react accordingly to the model. Example: - enter route: /restaurants/1 - Make a `selected` property...

As you know, related: https://github.com/gabesmed/ember-leaflet/pull/98#issuecomment-78551161 Something like that is planned for future versions.

I believe it is related with https://github.com/emberjs/ember.js/issues/5534

Meanwhile, you can check this: https://github.com/gabesmed/ember-leaflet/blob/ember-cli-es6/app%2Fmixins%2Fpopup.js#L57-L87

Well, @gabesmed is the author of that part. But it obviously is a sensible part since we're using internals (private API). Tell us if you have an alternative.

I think we're talking about two different things here. The `childLayers` deprecation has nothing to do with ember-cli port. > Setting the childViews property on a view definition is deprecated...

Basic approach: ``` javascript export default EmberLeaflet.MarkerLayer.extend(EmberLeaflet.DraggableMixin,EmberLeaflet.PopupMixin, { _updateLayerOnIconChange: Ember.observer(function(){ console.log('icon changed: update leaflet icon'); var newIcon = get(this, 'icon'); var oldIcon = this._layer && this._layer.options.icon; if(oldIcon && newIcon &&...