Skip to content

Same icon for all markers added #32

@j99ht

Description

@j99ht

Installing the latest release of the plugin, 6.2.8, when I add an array of markers, with different icons, the markers are drawn with the icon of the first one.
I'm using NS7+Angular.
See below a piece of code.

       
 this.myarray.forEach((element) => {
          const markerElement = this.myservice.setElementMarker(element);  // It returns a mapbox marker
          this.parkingMap.addMarkers([markerParking]);
        });

I see all the properties of the markers correctly set (title, subtitle, etc) but the icon displayed is always the one of the first element drawn.

I have tried with older releases of the package (6.0.0) for example, and it works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions