diff --git a/src/index.js b/src/index.js index f3185ac..b504765 100644 --- a/src/index.js +++ b/src/index.js @@ -147,7 +147,16 @@ const markerPoint = new google.maps.Marker({ position: LatLng, map: this.map, - icon: this.markerIcon + icon: marker.color + ? { + path: "M30.7007 9.95562C30.5382 9.42199 30.2083 8.85339 29.9642 8.35557C27.0436 2.20444 20.6621 0 15.5094 0C8.61149 0 1.01429 4.05345 0 12.4086V14.1155C0 14.1868 0.0280156 14.8267 0.0678104 15.1468C0.636399 19.1286 4.22165 23.3605 6.89926 27.3423C9.77998 31.6084 12.7692 35.8051 15.7306 40C17.5567 37.2625 19.3763 34.489 21.1608 31.8223C21.6471 31.0397 22.2117 30.2576 22.6985 29.5107C23.0231 29.0133 23.643 28.5159 23.9262 28.0532C26.8069 23.4312 31.4435 18.7736 31.4435 14.1867V12.3023C31.4436 11.8051 30.7403 10.0628 30.7007 9.95562ZM15.6357 18.5247C13.608 18.5247 11.3886 17.6362 10.2932 15.1824C10.13 14.7918 10.1431 14.0091 10.1431 13.9374V12.8351C10.1431 9.70703 13.1739 8.28452 15.8105 8.28452C19.0565 8.28452 21.567 10.5604 21.567 13.405C21.567 16.2496 18.8816 18.5247 15.6357 18.5247Z", + fillColor: marker.color, + fillOpacity: 1, + anchor: new google.maps.Point(0, 0), + strokeWeight: 0, + scale: 1 + } + : this.markerIcon }); if (marker.infowindow) { @@ -343,4 +352,4 @@ ]; } }); -} \ No newline at end of file +}