Problem:
I have a custom user type called "technician", when creating a technician they are assigned a color using a color picker field. They are also assigned a device which I'm using an MDM solution to control, as well as to get the devices location. I'm then using a map view to plot out where each of the technicians are via the GPS coordinates from their device. The client has requested that the map pins be colored to match the color assigned to the technician.
Solution:
There isn't such kind of feature within Toolset Maps plugin: Change the marker icon color or in the hex spectrum.
I have checked the Google map document you mentioned above:
https://developers.google.com/maps/documentation/javascript/reference/marker
There isn't color property for marker icon, so I don't think it will easy to change the marker color.
However, I can provide your some JS codes clue to find the markers in google map created with Toolset Maps plugin, for example:
https://toolset.com/forums/topic/dynamic-map-marker-coloring/#post-1757639
Relevant Documentation:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 2 replies, has 2 voices.
Last updated by 4 years, 3 months ago.
Assisted by: Luo Yang.