<?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 Need Locate button in embedded self-hosted Shortlist in Classic Esri Story Maps Questions</title>
    <link>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490262#M5648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am required to embedd a storymap that has a locate button. By default storymaps do not show the locate button when embedded in another page (via an &amp;lt;iframe&amp;gt; element).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with the &lt;A href="https://storymaps.arcgis.com/en/app-list/shortlist/"&gt;Shortlist template&lt;/A&gt;&amp;nbsp;. I am self-hosting the code. Where in the code could I change the logic so that it allows me to add the locate button when it is embedded in another page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a previous version of this template I could change the js code (viewer-min.js) where it checks for the condition&amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 12.8px; font-family: monospace, monospace;"&gt;&lt;EM&gt;window.top !== window.self&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;&lt;SPAN&gt;&amp;nbsp;but in the latest version (2.3.2) this same change does not lead to the location button being displayed in an &amp;lt;iframe&amp;gt; element any longer. I am not sure why.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate your help. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 19:20:09 GMT</pubDate>
    <dc:creator>TobiasFimpel</dc:creator>
    <dc:date>2017-07-20T19:20:09Z</dc:date>
    <item>
      <title>Need Locate button in embedded self-hosted Shortlist</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490262#M5648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am required to embedd a storymap that has a locate button. By default storymaps do not show the locate button when embedded in another page (via an &amp;lt;iframe&amp;gt; element).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with the &lt;A href="https://storymaps.arcgis.com/en/app-list/shortlist/"&gt;Shortlist template&lt;/A&gt;&amp;nbsp;. I am self-hosting the code. Where in the code could I change the logic so that it allows me to add the locate button when it is embedded in another page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a previous version of this template I could change the js code (viewer-min.js) where it checks for the condition&amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 12.8px; font-family: monospace, monospace;"&gt;&lt;EM&gt;window.top !== window.self&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;&lt;SPAN&gt;&amp;nbsp;but in the latest version (2.3.2) this same change does not lead to the location button being displayed in an &amp;lt;iframe&amp;gt; element any longer. I am not sure why.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate your help. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 19:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490262#M5648</guid>
      <dc:creator>TobiasFimpel</dc:creator>
      <dc:date>2017-07-20T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need embedded Storymap with Locate button</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490263#M5649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tobias -- Per the notes on that feature's checkbox, the Locate button will only work if the story is being accessed over https (in your case both your customized&amp;nbsp;story and the parent page must be https). This is a web security policy enforced by browsers (see &lt;A href="https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only"&gt;here&lt;/A&gt; for more info).&amp;nbsp;Is that the issue?&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/363677_pastedImage_1.jpg" style="width: 620px; height: 490px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490263#M5649</guid>
      <dc:creator>OwenGeo</dc:creator>
      <dc:date>2017-07-20T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need embedded Storymap with Locate button</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490264#M5650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply Owen. I double-checked and everything is https, both &lt;A href="https://egis.umn.edu/studyspace/index.html?appid=28b868e99464448f84c13b49e76a88ef"&gt;in my storymap&lt;/A&gt; as well as in the &lt;A href="https://egis.umn.edu/studyspace/testiframe.html"&gt;webpage I am embedding&lt;/A&gt; it in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I modify the template code so it disregards the second requirement ("...the story is not embedded.")?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490264#M5650</guid>
      <dc:creator>TobiasFimpel</dc:creator>
      <dc:date>2017-07-20T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need embedded Storymap with Locate button</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490265#M5651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you have both the source code and the production minified code in your hosted app, so the original code that blocks the locate button from showing in embedded is still being loaded from the source code. &amp;nbsp;If you remove the source code files, and only retain the production minified code with your alterations, the locate button should appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 21:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490265#M5651</guid>
      <dc:creator>MarkCooney</dc:creator>
      <dc:date>2017-07-20T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need embedded Storymap with Locate button</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490266#M5652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;Mark,&lt;/P&gt;&lt;P&gt;the odd thing is that when I only retain the production minified code with my alterations the app breaks because it then (as soon as I make my alterations) makes calls for the source code files...which of course aren't there unless I put them there. I'm not sure why that is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your suggestion led me to look in the right place and make my alterations in the source code files. My immediate problem is solved, thank you so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 03:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/need-locate-button-in-embedded-self-hosted/m-p/490266#M5652</guid>
      <dc:creator>TobiasFimpel</dc:creator>
      <dc:date>2017-07-21T03:24:22Z</dc:date>
    </item>
  </channel>
</rss>

