Skip to content

Single markers not appearing #36

@vrouet

Description

@vrouet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions