<?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 Embedding ArcOnline in HTML in ArcGIS Mapping and Charting Questions</title>
    <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/embedding-arconline-in-html/m-p/251827#M827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am trying to embed my maps I made on ArcOnline in the HTML and I manage to make tabs to embed them all on one page. However, I am facing some issues which I am not able to understand what is happening with it.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;My issues are below:&lt;/P&gt;&lt;OL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Every time I use the tabbing method and embed the map on the map on the first tab is centralized in other tabs there it does not get centralized until I click on the home button. I want it to be centralized every time I click on that tab. If I move the map from other tabs to the first tab, they work fine, so I am assuming everything is fine with the map.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Also, the attribute table does not open when the map is in another tab then the first active tab.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am putting my code below for your reference.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Kindly, let me know is there is a possibility to change this behavior of this map.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am not able to figure out what is wrong.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Vipin&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;arconline‌ html‌ arcmap help‌ arcmap‌ arcgis online webapp builder‌&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;body {font-family: "Arial", sans-serif;}&lt;/P&gt;&lt;P&gt;/* Style the tab */&lt;BR /&gt;div.tab {&lt;BR /&gt; overflow: hidden;&lt;BR /&gt; border: 1px solid #ccc;&lt;BR /&gt; background-color: #f1f1f1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Style the buttons inside the tab */&lt;BR /&gt;div.tab button {&lt;BR /&gt; background-color: inherit;&lt;BR /&gt; float: left;&lt;BR /&gt; border: black;&lt;BR /&gt; outline: none;&lt;BR /&gt; cursor: pointer;&lt;BR /&gt; padding: 14px 16px;&lt;BR /&gt; transition: 0.3s;&lt;BR /&gt; font-size: 17px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Change background color of buttons on hover */&lt;BR /&gt;div.tab button:hover {&lt;BR /&gt; background-color: #fff;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Create an active/current tablink class */&lt;BR /&gt;div.tab button.active {&lt;BR /&gt; background-color: lightblue;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Style the tab content */&lt;BR /&gt;.tabcontent {&lt;BR /&gt; display: none;&lt;BR /&gt; padding: 6px 12px;&lt;BR /&gt; border: 1px solid #ccc;&lt;BR /&gt; border-top: green;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="tab"&amp;gt;&lt;BR /&gt; &amp;lt;button class="tablinks" onclick="openMap(event, 'Mapwithlayers')" id="defaultOpen"&amp;gt;Mapwithlayers&amp;lt;/button&amp;gt;&lt;BR /&gt; &amp;lt;button class="tablinks" onclick="openMap(event, 'Mapwithfilters')"&amp;gt;Mapwithfilters&amp;lt;/button&amp;gt;&lt;BR /&gt; &amp;lt;button class="tablinks" onclick="openMap(event, 'GreyMapLayer')"&amp;gt;GreyMapLayer&amp;lt;/button&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;div id="Mapwithlayers" class="tabcontent"&amp;gt;&lt;BR /&gt; &amp;lt;span onclick="this.parentElement.style.display='none'" class="topright"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; &amp;lt;iframe width="100%" height="840px" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Farcg.is%2F2nLnY5A" rel="nofollow" target="_blank"&gt;http://arcg.is/2nLnY5A&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="Mapwithfilters" class="tabcontent"&amp;gt;&lt;BR /&gt; &amp;lt;span onclick="this.parentElement.style.display='none'" class="topright"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; &amp;lt;iframe width="100%" height="840px" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Farcg.is%2F2nLnY5A" rel="nofollow" target="_blank"&gt;http://arcg.is/2nLnY5A&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;div id="GreyMapLayer" class="tabcontent"&amp;gt;&lt;BR /&gt; &amp;lt;span onclick="this.parentElement.style.display='none'" class="topright"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; &amp;lt;iframe width="100%" height="840px" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fun13.maps.arcgis.com%2Fapps%2FEmbed%2Findex.html%3Fwebmap%3D1f25e4d600ad49539404f8c00c771a5a%26amp%3Bextent%3D-177.7678%2C-52.1584%2C172.6076%2C78.4721%26amp%3Bhome%3Dtrue%26amp%3Bzoom%3Dtrue%26amp%3Bscale%3Dtrue%26amp%3Blegend%3Dtrue%26amp%3Bdisable_scroll%3Dtrue%26amp%3Btheme%3Dlight" rel="nofollow" target="_blank"&gt;http://un13.maps.arcgis.com/apps/Embed/index.html?webmap=1f25e4d600ad49539404f8c00c771a5a&amp;amp;extent=-177.7678,-52.1584,172.6076,78.4721&amp;amp;home=true&amp;amp;zoom=true&amp;amp;scale=true&amp;amp;legend=true&amp;amp;disable_scroll=true&amp;amp;theme=light&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function openMap(evt, mapname) {&lt;BR /&gt; var i, tabcontent, tablinks;&lt;BR /&gt; tabcontent = document.getElementsByClassName("tabcontent");&lt;BR /&gt; for (i = 0; i &amp;lt; tabcontent.length; i++) {&lt;BR /&gt; tabcontent&lt;I&gt;.style.display = "none";&lt;BR /&gt; }&lt;BR /&gt; tablinks = document.getElementsByClassName("tablinks");&lt;BR /&gt; for (i = 0; i &amp;lt; tablinks.length; i++) {&lt;BR /&gt; tablinks&lt;I&gt;.className = tablinks&lt;I&gt;.className.replace("active", "");&lt;BR /&gt; }&lt;BR /&gt; document.getElementById(mapname).style.display = "block";&lt;BR /&gt; evt.currentTarget.className += "active";&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;// Get the element with id="defaultOpen" and click on it&lt;BR /&gt;document.getElementById("defaultOpen").click();&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 14:15:34 GMT</pubDate>
    <dc:creator>VipinSaroha</dc:creator>
    <dc:date>2017-03-29T14:15:34Z</dc:date>
    <item>
      <title>Embedding ArcOnline in HTML</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/embedding-arconline-in-html/m-p/251827#M827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am trying to embed my maps I made on ArcOnline in the HTML and I manage to make tabs to embed them all on one page. However, I am facing some issues which I am not able to understand what is happening with it.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;My issues are below:&lt;/P&gt;&lt;OL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Every time I use the tabbing method and embed the map on the map on the first tab is centralized in other tabs there it does not get centralized until I click on the home button. I want it to be centralized every time I click on that tab. If I move the map from other tabs to the first tab, they work fine, so I am assuming everything is fine with the map.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Also, the attribute table does not open when the map is in another tab then the first active tab.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am putting my code below for your reference.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Kindly, let me know is there is a possibility to change this behavior of this map.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am not able to figure out what is wrong.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Vipin&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;arconline‌ html‌ arcmap help‌ arcmap‌ arcgis online webapp builder‌&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;body {font-family: "Arial", sans-serif;}&lt;/P&gt;&lt;P&gt;/* Style the tab */&lt;BR /&gt;div.tab {&lt;BR /&gt; overflow: hidden;&lt;BR /&gt; border: 1px solid #ccc;&lt;BR /&gt; background-color: #f1f1f1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Style the buttons inside the tab */&lt;BR /&gt;div.tab button {&lt;BR /&gt; background-color: inherit;&lt;BR /&gt; float: left;&lt;BR /&gt; border: black;&lt;BR /&gt; outline: none;&lt;BR /&gt; cursor: pointer;&lt;BR /&gt; padding: 14px 16px;&lt;BR /&gt; transition: 0.3s;&lt;BR /&gt; font-size: 17px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Change background color of buttons on hover */&lt;BR /&gt;div.tab button:hover {&lt;BR /&gt; background-color: #fff;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Create an active/current tablink class */&lt;BR /&gt;div.tab button.active {&lt;BR /&gt; background-color: lightblue;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Style the tab content */&lt;BR /&gt;.tabcontent {&lt;BR /&gt; display: none;&lt;BR /&gt; padding: 6px 12px;&lt;BR /&gt; border: 1px solid #ccc;&lt;BR /&gt; border-top: green;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="tab"&amp;gt;&lt;BR /&gt; &amp;lt;button class="tablinks" onclick="openMap(event, 'Mapwithlayers')" id="defaultOpen"&amp;gt;Mapwithlayers&amp;lt;/button&amp;gt;&lt;BR /&gt; &amp;lt;button class="tablinks" onclick="openMap(event, 'Mapwithfilters')"&amp;gt;Mapwithfilters&amp;lt;/button&amp;gt;&lt;BR /&gt; &amp;lt;button class="tablinks" onclick="openMap(event, 'GreyMapLayer')"&amp;gt;GreyMapLayer&amp;lt;/button&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;div id="Mapwithlayers" class="tabcontent"&amp;gt;&lt;BR /&gt; &amp;lt;span onclick="this.parentElement.style.display='none'" class="topright"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; &amp;lt;iframe width="100%" height="840px" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Farcg.is%2F2nLnY5A" rel="nofollow" target="_blank"&gt;http://arcg.is/2nLnY5A&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="Mapwithfilters" class="tabcontent"&amp;gt;&lt;BR /&gt; &amp;lt;span onclick="this.parentElement.style.display='none'" class="topright"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; &amp;lt;iframe width="100%" height="840px" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Farcg.is%2F2nLnY5A" rel="nofollow" target="_blank"&gt;http://arcg.is/2nLnY5A&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;div id="GreyMapLayer" class="tabcontent"&amp;gt;&lt;BR /&gt; &amp;lt;span onclick="this.parentElement.style.display='none'" class="topright"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; &amp;lt;iframe width="100%" height="840px" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fun13.maps.arcgis.com%2Fapps%2FEmbed%2Findex.html%3Fwebmap%3D1f25e4d600ad49539404f8c00c771a5a%26amp%3Bextent%3D-177.7678%2C-52.1584%2C172.6076%2C78.4721%26amp%3Bhome%3Dtrue%26amp%3Bzoom%3Dtrue%26amp%3Bscale%3Dtrue%26amp%3Blegend%3Dtrue%26amp%3Bdisable_scroll%3Dtrue%26amp%3Btheme%3Dlight" rel="nofollow" target="_blank"&gt;http://un13.maps.arcgis.com/apps/Embed/index.html?webmap=1f25e4d600ad49539404f8c00c771a5a&amp;amp;extent=-177.7678,-52.1584,172.6076,78.4721&amp;amp;home=true&amp;amp;zoom=true&amp;amp;scale=true&amp;amp;legend=true&amp;amp;disable_scroll=true&amp;amp;theme=light&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function openMap(evt, mapname) {&lt;BR /&gt; var i, tabcontent, tablinks;&lt;BR /&gt; tabcontent = document.getElementsByClassName("tabcontent");&lt;BR /&gt; for (i = 0; i &amp;lt; tabcontent.length; i++) {&lt;BR /&gt; tabcontent&lt;I&gt;.style.display = "none";&lt;BR /&gt; }&lt;BR /&gt; tablinks = document.getElementsByClassName("tablinks");&lt;BR /&gt; for (i = 0; i &amp;lt; tablinks.length; i++) {&lt;BR /&gt; tablinks&lt;I&gt;.className = tablinks&lt;I&gt;.className.replace("active", "");&lt;BR /&gt; }&lt;BR /&gt; document.getElementById(mapname).style.display = "block";&lt;BR /&gt; evt.currentTarget.className += "active";&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;// Get the element with id="defaultOpen" and click on it&lt;BR /&gt;document.getElementById("defaultOpen").click();&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 14:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/embedding-arconline-in-html/m-p/251827#M827</guid>
      <dc:creator>VipinSaroha</dc:creator>
      <dc:date>2017-03-29T14:15:34Z</dc:date>
    </item>
  </channel>
</rss>

