Skip to content
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

Single markers not appearing #36

Open
vrouet opened this issue Sep 18, 2015 · 0 comments
Open

Single markers not appearing #36

vrouet opened this issue Sep 18, 2015 · 0 comments

Comments

@vrouet
Copy link

vrouet commented Sep 18, 2015

While integrating a map on a page we discovered that markers don't work without a ng-repeat attribute.
For instance, this will not display any marker:

<mapbox map-id="{{mapTemplate}}" scale-to-fit height="400" width="100%">
    <marker ng-repeat="page in pages" lat="{{place.latitude}}" lng="{{place.longitude}}"></marker>
</mapbox>

The only work-around I found is doing it like so:

<mapbox map-id="{{mapTemplate}}" scale-to-fit height="400" width="100%">
    <marker ng-repeat="onePlace in [place]" lat="{{onePlace.latitude}}" lng="{{onePlace.longitude}}"></marker>
</mapbox>

Although it does work, it's only a work-around, and not a clean way of doing it. Maybe someone who knows the codebase better than I do can understand what's causing the bug.

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

No branches or pull requests

1 participant