We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
via @miguelcobain:
Actually, there is a problem with icon binding (which is pretty useful):
When you change icon in leaflet, you lose the draggability. So you need to restore it.
I use this code:
iconBinding: 'content.icon', _updateLayerOnIconChange: Ember.observer(function(){ var newIcon = get(this, 'icon'); var oldIcon = this._layer && this._layer.options.icon; if(oldIcon && newIcon && oldIcon !== newIcon) { var draggable = this._layer.dragging.enabled(); this._layer.setIcon(newIcon); if(draggable) this._layer.dragging.enable(); else this._layer.dragging.disable(); } }, 'content.icon'),
I don't have much time right now, but it would be nice to have failing tests for this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
via @miguelcobain:
Actually, there is a problem with icon binding (which is pretty useful):
When you change icon in leaflet, you lose the draggability. So you need to restore it.
I use this code:
I don't have much time right now, but it would be nice to have failing tests for this.
The text was updated successfully, but these errors were encountered: