Is it possible to style edit marker icons?
See original GitHub issueIs any way to change the style of the marker icons in a polyline when it is in edit mode?
When instantiating the drawControl I know that this it is possible:
var drawControl = new L.Control.Draw({
polyline: {
icon: new L.DivIcon({
iconSize: new L.Point(10, 10),
className: 'leaflet-div-icon leaflet-editing-icon my-own-class'
})
}
});
However this only applies to drawing and the style reverts back to the “default” when entering edit mode. The only solution for achieving this when editing is to override the leaflet-editing-icon
css class which is kind of a dirty hack.
Am I missing something?
Issue Analytics
- State:
- Created 11 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Custom bullets with CSS ::marker - web.dev
Custom bullets with CSS ::marker ... It is now trivial to customize the color, size or type of number or bullet when using...
Read more >Using ::marker to Style Your Lists - Hall Internet Marketing
Use the new ::marker pseudo-element to change marker colors, content, and hover content of your lists more efficiently than ever before.
Read more >Custom Markers | Maps JavaScript API - Google Developers
This tutorial teaches you how to change the icon of a Google maps marker. It is beneficial to know the basics of creating...
Read more >Create custom map marker icon with Leaflet - Geoapify
In this article, we would like to show you how to create amazing and easy to style map marker pins with Material Design...
Read more >Is it possible to style and/or change icons related to labels on ...
Is there a way to style the background-color of the icon, for instance? As far as I understood they aren't markers, therefore API...
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 FreeTop 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
Top GitHub Comments
Implemented in 0.2. Can do:
Will add to README.
This worked: