<?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: Leaflet example not inheriting service symbology in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853919#M140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/141782" target="_blank"&gt;Henry7512 Custer&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like there's a problem with the integrity hash on the&amp;nbsp;&lt;A href="https://unpkg.com/esri-leaflet-renderers@2.1.2" target="_blank"&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2&lt;/A&gt;&amp;nbsp;resource. If you view the source of the example that you're viewing on that page, you'll see that the HTML that's being used to display that map has dropped the integrity property off the &lt;A href="mailto:esri-leaflet-renderers@2.1.2" rel="nofollow noopener noreferrer" target="_blank"&gt;esri-leaflet-renderers@2.1.2&lt;/A&gt;&amp;nbsp;resource to get around the problem. That's going to be the easiest solution, and would be fine for the purposes of your own testing and development&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for that particular resource your html would now be -&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;  &lt;SPAN class="comment token"&gt;&amp;lt;!-- Load Esri Leaflet Renderers plugin to use feature service symbology --&amp;gt;&lt;/SPAN&gt;
  &lt;SPAN class="language-javascript script token"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;src&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Ideally though, having properly working&amp;nbsp;integrity hashes on external scripts is a very good thing in terms of web application security. To learn more about what they do, why they're a good thing and how to generate your own - the MDN provides a good resource:&amp;nbsp;&lt;A class="link-titled" href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity" title="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity" rel="nofollow noopener noreferrer" target="_blank"&gt;Subresource Integrity - Web security | MDN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp;&lt;/P&gt;&lt;P&gt;To save you&amp;nbsp;a bit of leg-work, I've gone and generated a working hash that you can use for the esri-leaflet-renderers script instead. Strictly speaking, having a properly working hash is the better way of doing things, even if it's not overly critical when we're just getting our heads around some example code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;  &lt;SPAN class="comment token"&gt;&amp;lt;!-- Load Esri Leaflet Renderers plugin to use feature service symbology --&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="language-javascript script token"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;src&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; 
   &lt;SPAN class="attr-name token"&gt;integrity&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;sha384-rfnFNL31tMWuuMEgI9YbrQApx2f8V1U+dOWIokWqjanYqREgH06lyxWdzxN9Xb97&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; 
   &lt;SPAN class="attr-name token"&gt;crossorigin&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:32:08 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T10:32:08Z</dc:date>
    <item>
      <title>Leaflet example not inheriting service symbology</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853918#M139</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saved&amp;nbsp;&amp;nbsp;this example&amp;nbsp;&lt;A class="link-titled" title="https://esri.github.io/esri-leaflet/examples/renderers-plugin.html" href="https://esri.github.io/esri-leaflet/examples/renderers-plugin.html" target="_blank"&gt;Inherit service symbology | Esri Leaflet&lt;/A&gt;&amp;nbsp;&amp;nbsp; as an html file. I get the following console error and the symbology is not displayed as&amp;nbsp;it should.&lt;/P&gt;
&lt;P&gt;"SEC7136: [Integrity] The origin 'file://' failed an integrity check for a script resource at '&lt;A href="https://unpkg.com/esri-leaflet-renderers@2.1.2/dist/esri-leaflet-renderers-debug.js" target="_blank"&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2/dist/esri-leaflet-renderers-debug.js&lt;/A&gt;' "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504308_pastedImage_2.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853918#M139</guid>
      <dc:creator>Henry7512Custer</dc:creator>
      <dc:date>2023-08-25T20:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet example not inheriting service symbology</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853919#M140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/141782" target="_blank"&gt;Henry7512 Custer&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like there's a problem with the integrity hash on the&amp;nbsp;&lt;A href="https://unpkg.com/esri-leaflet-renderers@2.1.2" target="_blank"&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2&lt;/A&gt;&amp;nbsp;resource. If you view the source of the example that you're viewing on that page, you'll see that the HTML that's being used to display that map has dropped the integrity property off the &lt;A href="mailto:esri-leaflet-renderers@2.1.2" rel="nofollow noopener noreferrer" target="_blank"&gt;esri-leaflet-renderers@2.1.2&lt;/A&gt;&amp;nbsp;resource to get around the problem. That's going to be the easiest solution, and would be fine for the purposes of your own testing and development&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for that particular resource your html would now be -&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;  &lt;SPAN class="comment token"&gt;&amp;lt;!-- Load Esri Leaflet Renderers plugin to use feature service symbology --&amp;gt;&lt;/SPAN&gt;
  &lt;SPAN class="language-javascript script token"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;src&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Ideally though, having properly working&amp;nbsp;integrity hashes on external scripts is a very good thing in terms of web application security. To learn more about what they do, why they're a good thing and how to generate your own - the MDN provides a good resource:&amp;nbsp;&lt;A class="link-titled" href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity" title="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity" rel="nofollow noopener noreferrer" target="_blank"&gt;Subresource Integrity - Web security | MDN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp;&lt;/P&gt;&lt;P&gt;To save you&amp;nbsp;a bit of leg-work, I've gone and generated a working hash that you can use for the esri-leaflet-renderers script instead. Strictly speaking, having a properly working hash is the better way of doing things, even if it's not overly critical when we're just getting our heads around some example code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;  &lt;SPAN class="comment token"&gt;&amp;lt;!-- Load Esri Leaflet Renderers plugin to use feature service symbology --&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="language-javascript script token"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;src&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;https://unpkg.com/esri-leaflet-renderers@2.1.2&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; 
   &lt;SPAN class="attr-name token"&gt;integrity&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;sha384-rfnFNL31tMWuuMEgI9YbrQApx2f8V1U+dOWIokWqjanYqREgH06lyxWdzxN9Xb97&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; 
   &lt;SPAN class="attr-name token"&gt;crossorigin&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853919#M140</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet example not inheriting service symbology</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853920#M141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you James!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 13:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-example-not-inheriting-service-symbology/m-p/853920#M141</guid>
      <dc:creator>Henry7512Custer</dc:creator>
      <dc:date>2020-08-24T13:50:10Z</dc:date>
    </item>
  </channel>
</rss>

