How can I color the icons ?

Created on 24 February 2025, about 1 month ago

I added a geolocation field to the user form and created a user views page, with a leaflet geolocation map.

My users can have the roles male or female.

Currently the map displays blue cursors (the default icons). How can I color the icons pink for users with the role female ?

💬 Support request
Status

Active

Version

3.0

Component

Geolocation Field / Backend

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @zenimagine
  • 🇩🇪Germany christianadamski Berlin, Germany

    4 Options:

    1.) Use a custom module to override icon path.
    2.) The icon path supports tokens. Use current user token object and go from there.
    3.) Use CSS to alter the icon if the user class is i.e. added to body.
    4.) Use ECA module.

Production build 0.71.5 2024