How to change the color of Google Maps markers with JavaScript 3. Wrap into add marker function To make the code cleaner, we can define an addMarker function which takes in latLng and color of the marker. Note that we store the markers added in the a global...