-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
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
ngeoDecorate*: two way binding ? #101
Comments
Yes why not. Do you have a specific use-case in mind? |
We can do it with handling some ol events maybe, but take care of infinite loop ! |
A |
I was wondering about an application use-case. Also, we could extend the I'd rather wait for specific use-cases before implementing this though, this is why I was asking if you had any. |
Display the view rotation in a text element: <span>{{view.rotation}}</span> |
Ok. Note that for |
@fredj, I guess making this work would just require triggering a digest cycle when the ol3 property changes. For example, this is what the goog.events.listen(layer, ol.Object.getChangeEventType('visible'),
/**
* @type {ol.ObjectEvent} e Object event.
*/
function(e) {
$rootScope.$digest();
}, false, this); As I said, we'd need to be careful for the view center, because we don't want to trigger a digest every time the center changes while dragging the map. What we could possibly do is add a |
Closing this for now. |
For now, the
ngeoDecorate*
services offer a one way binding (angular to ol3).Is it planned to have a two way binding (ol3 to angular) ?
The text was updated successfully, but these errors were encountered: