how to getMarkers as the same as angular leaflet directive leafData.getMarkers()
See original GitHub issuehi, 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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
how to getMarkers as the same as angular leaflet directive leafData ...
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)...
Read more >Marker handle in angular-leaflet-directive - Stack Overflow
There's an leafletData service for that. The Promise you get when you call leafletData.getMarkers() resolves with the Leaflet marker objects ...
Read more >Leaflet directive for AngularJS
Simple to use directive for easy embedding and interacting with a map managed with the leaflet map library on an AngularJS application.
Read more >Is it possible to show Leaflet Marker Cluster with JSON API?
I have a problem with displaying Leaflet Marker Cluster ...
Read more >angular-leaflet-directive - npm
AngularJS directive for the Leaflet Javascript Library. This software aims to easily embed maps managed by leaflet on your Leaflet project. You ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think this would work with your initial code:
Or by passing the icon to the component prop
Closing this, since I believe is resolved