Google Maps API 3 - Custom marker color using SVG (easy) -


i've seen lots of other questions similar. after, have tried many ways, have found solution easy implementation.

  1. i have downloaded svg image , save in folder.
  2. i have set url icon

    icon : { url : yoururl/marker.svg' }

  3. open svg file (sublime text) set fill property.

    <style type="text/css">  .st1{fill:#0a2b82;} </style> <ellipse class="st1" cx="23.5" cy="44.7" rx="10.4" ry="3.3"/> 


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -