Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Mutliple windows inside markers #249

Closed
thirsch81 opened this issue Feb 10, 2014 · 3 comments
Closed

Mutliple windows inside markers #249

thirsch81 opened this issue Feb 10, 2014 · 3 comments
Labels

Comments

@thirsch81
Copy link
Contributor

Im would like to basically reproduce the same behaviour the markers have in the Demo example. I think it should not be that hard to accomplish, however I'm really struggling. Problem is how to do I put any content inside the window? There aren't any properties exposed. All the {{propertyName}} stay empty in my boxes.
From the docs I would assume that I would just have to place a "windows" inside a "markers" and then I could just

<div class="markers" models="items" coords="'coords'" icon="'icon'" click="'click'">
    <div class="windows" show="'showWindow'">
    <p>{{coords.latitude}}</p>
    <p>{{coords.longitude}}</p>
            <p>{{whateverProperty}}</p> // nothing here
</div>
</div>
@nmccready
Copy link
Contributor

Currently it needs to have whatever dom element wrapped with ng-non-bindable. The example has this. It is expected that whatever you want to interpolate will be in the model. So if latitude is at model.latitude then {{latitude}} will work.

ng-non-bindable is so the interpolation is delayed so it is done in the directive manually, as it has to be mapped to the model which the WindowChild will belong to.

@nmccready
Copy link
Contributor

@thirsch81
Copy link
Contributor Author

Thank you, it does work as expected now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants