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

ui-gmap-markers options can't not use current model #1609

Open
@tianxu0836

Description

@tianxu0836

I'm trying to load icon for each mark. each mark's icon is different.

I have a function "getIcon", it will needs the uid from each binding model(item.Uid).

If I pass "this" to getIcon, it is undefined.

It seems like there is no way to find the current model.

I will have to use "ui-gmap-markers" here not "ui-gmap-marker"

This options works really weird.

<ui-gmap-markers models="items" idkey="'Uid'"                     
                 options="{icon: getIcon(this, map.zoom)}"
                 coords="'self'" icon="'icon'">
</ui-gmap-markers>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions