Different icon for selected
See original GitHub issueI seem to be the first person to try to tag a question with vue2leaflet and have rep under 1500 so I can’t post there.
How do you change the icon on a marker clicked @l-click
event? Basically I want to change the size/color of selected marker and reset the previous marker to default. Not sure how to do this in terms of Vue2Leaflet’s interface.
Using vue2 2.3.4 and vue2leaflet 0.0.55
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Android: Bottom Navigation View - change icon of selected item
The above answer is a compilation of answers from various answers in stackoverflow related to bottom navigation views, icon & text color/size change....
Read more >Selected Icons – Download for Free in PNG and SVG - Icons8
Free Selected icons in various UI design styles for web, mobile. Download static and animated Selected vector icons for free in PNG, SVG,...
Read more >Selection Icons & Symbols - Flaticon
12849 selection icons. Vector icons in SVG, PSD, PNG, EPS and ICON FONT. ... Selection Icons. Delete filters. Icons Stickers Animated icons Interface...
Read more >3,919 select icons - Iconfinder
Download 3919 select icons. Available in PNG and SVG formats. Ready to be used in web design ... sort, ascending, descending, match, order,...
Read more >Selecting Icons - Windows Vista Annoyances [Book] - O'Reilly
▸ Select all. Highlight all of the icons in a window by choosing Organize→Select All. · ▸ Highlight several consecutive icons. Start with...
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
@imudin you are using a method to get the icon which is not reactive so the marker doesn’t update. You should use a computed property instead. Make sure you understand how reactivity works in vuejs. This 2 pages of the documentation should help:
Hi @delaneyj,
Here is a working example.
Mickaël