AnsweredAssumed Answered

Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX

Question asked by omega_cancer on May 10, 2015
Latest reply on May 11, 2015 by omega_cancer

I am generating SVGs on client side at runtime so I want to use it as PictureMarkerSymbols.

PictureMarkerSymbols takes the URL property of SVG to draw SVG symbol, Is there any other way to create SVG based PictureMarkerSymbols like to create it from:


1. Raw SVG tags

<rect x='0', y ='0',  width='100', height='100' />


2. Making use of Dojo GFX like 

Vector Graphics with Dojo&apos;s GFX - Dojo Toolkit Tutorial

// Create a rectangle
var rectangle = surface.createRect({ x: 100, y: 50, width: 200, height: 100 })
    shape: rectangle,
    duration: 500,
    color: { start: "yellow", end: "pink" },
    width: { end: 15 },
    join:  { values: ["miter", "bevel", "round"] }

Dojo is being used by ESRI so it should support Dojo GFX


Any help would be very much appreciated.