79425164

Date: 2025-02-09 15:41:01
Score: 1
Natty:
Report link

Based on answere by Pierre Burton Without named const:

L.marker(//...)
   .on('add', (e) => e.target.getElement().setAttribute('id', customId));

Can be used also for data attributes.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Georg