javascript - Google Maps SVG marker with animation -


can’t svg animate marker on google maps

<svg width="120px" height="120px" viewbox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">    <g fill="none" fill-rule="evenodd" stroke-width="1" stroke="black" stroke-opacity="0.3">      <circle cx="50" cy="50" r="50">        <animate attributename="r" begin="0s" dur="3s" values="0;50" keytimes="0;1" keysplines="0.1,0.2,0.3,1" calcmode="spline" repeatcount="indefinite"></animate>        <animate attributename="stroke-opacity" begin="0s" dur="3s" values="0;.3;.3;0" repeatcount="indefinite"></animate>      </circle>      <circle cx="50" cy="50" r="30">        <animate attributename="r" begin="-1s" dur="3s" values="0;50" keytimes="0;1" keysplines="0.1,0.2,0.3,1" calcmode="spline" repeatcount="indefinite"></animate>        <animate attributename="stroke-opacity" begin="-1s" dur="3s" values="0;.3;.3;0" repeatcount="indefinite"></animate>      </circle>    </g>  </svg>

as mentioned in comment, set optimized: false in marker options.

from docs:

disable optimized rendering animated gifs or pngs, or when each marker must rendered separate dom element (advanced usage only).


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -