<?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: When using &amp;lt;base&amp;gt; tag, SimpleFillSymbols with &amp;quot;hatches&amp;quot; and PictureFillSymbols fail to draw fill in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-using-lt-base-gt-tag-simplefillsymbols-with/m-p/180672#M16764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick update: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a data uri for the image url, works fine in Chrome, still fails in FireFox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/314399_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 17:47:24 GMT</pubDate>
    <dc:creator>FredSpataro</dc:creator>
    <dc:date>2017-02-03T17:47:24Z</dc:date>
    <item>
      <title>When using &lt;base&gt; tag, SimpleFillSymbols with "hatches" and PictureFillSymbols fail to draw fill</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-using-lt-base-gt-tag-simplefillsymbols-with/m-p/180671#M16763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4 style="color: #333333; background-color: #ffffff; font-weight: 600; font-size: 14px; margin-top: 0px !important; margin-bottom: 16px;"&gt;&lt;SPAN style="font-weight: normal;"&gt;Hi All,&amp;nbsp;&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal;"&gt;I've found a really odd issue where "picture fill" portion of the symbol doesn't draw in FireFox, MS Edge and Safari when you're html uses&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base" title="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base"&gt;&amp;lt;base&amp;gt; - HTML | MDN&lt;/A&gt;&amp;nbsp;. &amp;nbsp;This is quite common in angular apps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H4 style="color: #333333; background-color: #ffffff; font-weight: 600; font-size: 14px; margin-top: 0px !important; margin-bottom: 16px;"&gt;&lt;/H4&gt;&lt;H4 style="color: #333333; background-color: #ffffff; font-weight: 600; font-size: 14px; margin-top: 0px !important; margin-bottom: 16px;"&gt;Expected behavior&lt;/H4&gt;&lt;P style="color: #333333; background-color: #ffffff; margin-bottom: 16px;"&gt;PictureFillSymbols and SimpleFillSymbols with a hatch fill setting (ie STYLE_HORIZONTAL) draw correctly when using the &amp;lt;base&amp;gt; element.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; margin-bottom: 16px;"&gt;Functioning:&lt;BR /&gt;In Chrome on Windows &amp;amp; Mac and MS IE 11, the fill hatch or picture displays as expected.&lt;/P&gt;&lt;H4 style="color: #333333; background-color: #ffffff; font-weight: 600; font-size: 14px; margin-top: 24px; margin-bottom: 16px;"&gt;Actual behavior&lt;/H4&gt;&lt;P style="color: #333333; background-color: #ffffff; margin-bottom: 16px;"&gt;Non-functioning:&lt;BR /&gt;In MS Edge, Safari on Mac and iOS the fill is &lt;STRONG&gt;solid black&lt;/STRONG&gt; (no hatch or picture).&lt;BR /&gt;In FireFox on Windows &amp;amp; Mac the fill is &lt;STRONG&gt;completely empty&lt;/STRONG&gt; (no hatch or picture).&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; margin-bottom: 16px;"&gt;I've stripped most of everything out of the my code in trying to nail down the issue, and it appears to be as simple as adding or removing the &amp;lt;base&amp;gt; element&lt;/P&gt;&lt;UL style="color: #333333; background-color: #ffffff; margin-bottom: 16px; padding-left: 2em;"&gt;&lt;LI&gt;There are no errors or other indicators for an issue from within the developer tools.&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;The network tab shows the fill picture (hatches in simplefillsymbol use a picture just like a picture fill symbol) IS being downloaded successfully.&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;Inspecting the canvas svg elements and the sections in the working and non-working browsers show the exact same information so the svg elements appear to be correctly created.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce&lt;/P&gt;&lt;OL&gt;&lt;LI style="color: #333333; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;Copy this sample locally:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jssamples/graphics_add.html"&gt;&lt;SPAN style="color: #4078c0;"&gt;https://developers.arcgis.com/javascript/3/jssamples/graphics_add.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #333333; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;Add the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;lt;base href="..."&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;tag &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #333333; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;Use one of the polygon tools. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #333333; margin-top: 3.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;See the result in Edge/FireFox/Safari&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;FireFox result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="314367" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/314367_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FireFox network trace (image is downloaded, other browsers show same download success)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="314368" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/314368_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MS Edge and Safari result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="314375" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/314375_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparing SVG in element inspector Chrome (left) v FireFox (right)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="314377" class="jive-image image-4" src="https://community.esri.com/legacyfs/online/314377_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve tried both relative and absolute paths for both the &amp;lt;base&amp;gt; and the Symbol.Url property, neither seems to make a difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is causing a pretty big issue in our web apps.&amp;nbsp; We need to use the &amp;lt;base&amp;gt; tag for angular functionality and we have some fairly complicated cartography so being able to use simple hatches and picture fills is imperative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: this issue is not related to angular itself. I can reproduce with just the stock JSAPI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 17:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-using-lt-base-gt-tag-simplefillsymbols-with/m-p/180671#M16763</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2017-02-03T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: When using &lt;base&gt; tag, SimpleFillSymbols with "hatches" and PictureFillSymbols fail to draw fill</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-using-lt-base-gt-tag-simplefillsymbols-with/m-p/180672#M16764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick update: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a data uri for the image url, works fine in Chrome, still fails in FireFox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/314399_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 17:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-using-lt-base-gt-tag-simplefillsymbols-with/m-p/180672#M16764</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2017-02-03T17:47:24Z</dc:date>
    </item>
  </channel>
</rss>

