Color rules allow you to assign colors to map pins for better visual organization. They use filters to determine which pins are colored and what color they should be. You can define color rules using the Color Pins Lightning Web Component, and these rules are saved with the map they are created for.
To add a color rule:
1. Open or create a map.
2. In the Color Pins Lightning Web Component, click “Add a New Color Rule”.
3. Set up the filter for the color rule based on your criteria.
4. Choose a color for the rule.
5. When you’re done, click “Save”.
You can add multiple color rules by clicking “Add a New Color Rule” as many times as needed. To rearrange the order of the color rules, use the drag handle on the left side of each rule to drag it up or down.