<?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 embed map viewed on mobile device in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1568897#M62865</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the embed map HTML code from Map Viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the map style part of the code has a fixed height and width: &amp;lt;arcgis-embedded-map style="height:600px;width:700px;"&lt;/P&gt;&lt;P&gt;Can a ratio or percentage be provided to accommodate different screen sizes? Over 50% of the people who visit our site are on mobile.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 15:34:54 GMT</pubDate>
    <dc:creator>TimHayes3</dc:creator>
    <dc:date>2024-12-16T15:34:54Z</dc:date>
    <item>
      <title>embed map viewed on mobile device</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1568897#M62865</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the embed map HTML code from Map Viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the map style part of the code has a fixed height and width: &amp;lt;arcgis-embedded-map style="height:600px;width:700px;"&lt;/P&gt;&lt;P&gt;Can a ratio or percentage be provided to accommodate different screen sizes? Over 50% of the people who visit our site are on mobile.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 15:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1568897#M62865</guid>
      <dc:creator>TimHayes3</dc:creator>
      <dc:date>2024-12-16T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: embed map viewed on mobile device</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1570037#M62908</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;
  &amp;lt;meta charset="utf-8" /&amp;gt;
  &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /&amp;gt;
  &amp;lt;style&amp;gt;
    html,
    body {
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;
    }
    }
  &amp;lt;/style&amp;gt;
  &amp;lt;script type="module" src="https://js.arcgis.com/embeddable-components/4.31/arcgis-embeddable-components.esm.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;arcgis-embedded-map style="height:75%;width:50%;" item-id="cf35269c59cd45cc9bfae3480c0a64d7" theme="light" portal-url="https://arcgis.com" information-enabled&amp;gt;

&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Hello! You should be able to use a % for the width or height of the embedded map as long as the body&amp;nbsp; or containter has a height/width defined. The above works for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 00:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1570037#M62908</guid>
      <dc:creator>ZaraMatheson</dc:creator>
      <dc:date>2024-12-19T00:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: embed map viewed on mobile device</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1570763#M62937</link>
      <description>&lt;P&gt;Thank you for the response, Zara. Will this work in an iframe? here is the code I am using:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;iframe width="1000" height="700" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"&amp;nbsp;&lt;BR /&gt;src="&lt;A title="https://experience.arcgis.com/experience/2995bc506b5a41b8b28c4974f43392c2%22%3e%3c/iframe%3e" target="_blank" rel="noreferrer noopener"&gt;https://xyzxyzxyz/xyzxyzxyz/xyzxyzxyzxy"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Where would I add the % of width and height in this code?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 21:54:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/embed-map-viewed-on-mobile-device/m-p/1570763#M62937</guid>
      <dc:creator>TimHayes3</dc:creator>
      <dc:date>2024-12-20T21:54:17Z</dc:date>
    </item>
  </channel>
</rss>

