Map group data using the series concept, variables with the same series will be grouped in the same pin. Once a Pin is made a location(lat/lng) will be searched in this group, if one of these group variables gives a valid lat and lng a pin will be rendered in this position. Color statements follow the same principle, once the Pin satisfies a color statement based on a variable that is in the same infobox, it will change its color. Check out the
Car sample in Device Emulator.
Also, I created a quick example here:
One map, two variables, one location, and another called status, once the status is updated the pin will receive a new color, indicating if this ambulance is OK or OCCUPIED.
The payload to produce this example look like this:
"value": "TagoIO Headquarters",
In addition, to update the pin status is not necessary to send the location again, I can keep sending the variable
status with new data, and the pin will change its color.
I hope this helps you.