Skip to content

how to getMarkers as the same as angular leaflet directive leafData.getMarkers() #203

@Leo-lin214

Description

@Leo-lin214

hi, I want to get the markers, and set the icon's stye. In Angular, I can do this with that:

// angular
leafletData.getMarkers().then((marker) => {
  marker._icon.style[L.DomUtil.TRANSFORM] = marker._icon.style[L.DomUtil.TRANSFORM].split("rotate(")[0];
  marker._icon.style[L.DomUtil.TRANSFORM] += 'rotate(' + marker.options.angle + 'deg)';
})

But in vue2leaflet, I have no idea to do this thing.

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