Dynamically create SVG Pushpins RRS feed

  • Question

  • Hello

    I have created a dynamic SVG Pushpin and it appears where I push it.

    Now I want to change the appearance after rendering.

    In V7 I used pin.setOptions.

    How do I do it with dynamic SVG?


    Friday, January 6, 2017 4:46 PM


  • I have achieved that by recalculating the SVG string and using 

    pin.setOptions({icon: svg.join('')  etc where svg is the new string.

    I hope this helps someone

    Friday, January 6, 2017 5:46 PM