<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31845#M2582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have came across Raphael and SnapSVG.&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 15:02:32 GMT</pubDate>
    <dc:creator>omega_cancer</dc:creator>
    <dc:date>2015-05-11T15:02:32Z</dc:date>
    <item>
      <title>Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31841#M2578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am generating SVGs on client side at runtime so I want to use it as PictureMarkerSymbols.&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Raw SVG tags&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;svg&amp;gt;
&amp;lt;rect x='0', y ='0',&amp;nbsp; width='100', height='100' /&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. Making use of Dojo GFX like&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.10/gfx/index.html" title="http://dojotoolkit.org/documentation/tutorials/1.10/gfx/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Vector Graphics with Dojo&amp;amp;apos;s GFX - Dojo Toolkit Tutorial&lt;/A&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Create a rectangle
var rectangle = surface.createRect({ x: 100, y: 50, width: 200, height: 100 })
&amp;nbsp;&amp;nbsp;&amp;nbsp; .setStroke("yellow");
gfxFx.animateStroke({
&amp;nbsp;&amp;nbsp;&amp;nbsp; shape: rectangle,
&amp;nbsp;&amp;nbsp;&amp;nbsp; duration: 500,
&amp;nbsp;&amp;nbsp;&amp;nbsp; color: { start: "yellow", end: "pink" },
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: { end: 15 },
&amp;nbsp;&amp;nbsp;&amp;nbsp; join:&amp;nbsp; { values: ["miter", "bevel", "round"] }
});&lt;/PRE&gt;&lt;P&gt;Dojo is being used by ESRI so it should support Dojo GFX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31841#M2578</guid>
      <dc:creator>omega_cancer</dc:creator>
      <dc:date>2021-12-10T21:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31842#M2579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Have you seen this sample?&amp;nbsp; &lt;A href="https://developers.arcgis.com/javascript/jssamples/styling_svg_quantize.html" title="https://developers.arcgis.com/javascript/jssamples/styling_svg_quantize.html"&gt;SVG and CSS using D3 | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 19:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31842#M2579</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-10T19:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31843#M2580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have seen it.&lt;/P&gt;&lt;P&gt;Sorry for the dumb question but it only renders circles on map. How can I make it work with SVG tags please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31843#M2580</guid>
      <dc:creator>omega_cancer</dc:creator>
      <dc:date>2015-05-11T07:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31844#M2581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OK, I can not find an example of using a raw SVG as input. If you can obtain the SVG path string then you can use the Symbol.setPath method. If you have some standard SVGs that you use then you can use this website to get the paths for those SVGs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://readysetraphael.com/" title="http://readysetraphael.com/"&gt;SVG To RaphaelJS Converter - Ready.Set.Raphael. Beta 2&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31844#M2581</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-11T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating PictureMarkerSymbols with raw SVG tags or with Dojo GFX</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31845#M2582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have came across Raphael and SnapSVG.&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 15:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-picturemarkersymbols-with-raw-svg-tags-or/m-p/31845#M2582</guid>
      <dc:creator>omega_cancer</dc:creator>
      <dc:date>2015-05-11T15:02:32Z</dc:date>
    </item>
  </channel>
</rss>

