<?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 How to Get Div to Be Contained in a Map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333622#M30806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a div that I want to put inside the map, but either placing 'sidePanel' outside or inside&amp;nbsp;'viewDiv' don't work. I'm curious about is there any approach other than customizing a widget with TypeScript and SASS? To be specific, is it possible to do those widget tricks with generic HTML and CSS like I'm attempting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code :&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;html&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN style="color: maroon;"&gt;body&lt;/SPAN&gt;,
&lt;SPAN style="color: maroon;"&gt;#viewDiv&lt;/SPAN&gt;&amp;nbsp;{
&lt;SPAN style="color: red;"&gt;padding&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;0&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;margin&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;0&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;height&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100%&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;width&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100%&lt;/SPAN&gt;;
}
&lt;SPAN style="color: maroon;"&gt;#sidePanel&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;{
&lt;SPAN style="color: red;"&gt;background-color&lt;/SPAN&gt;:&lt;SPAN style="color: blue;"&gt;#f00&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;height&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100px&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;width&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100px&lt;/SPAN&gt;;
}
&lt;SPAN style="color: blue;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;

Snippet&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: red;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"sidePanel"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: red;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"viewDiv"&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: red;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"esri-widget"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;screenshot :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="459614" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/459614_map.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:47:35 GMT</pubDate>
    <dc:creator>JerryChen</dc:creator>
    <dc:date>2021-12-11T15:47:35Z</dc:date>
    <item>
      <title>How to Get Div to Be Contained in a Map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333622#M30806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a div that I want to put inside the map, but either placing 'sidePanel' outside or inside&amp;nbsp;'viewDiv' don't work. I'm curious about is there any approach other than customizing a widget with TypeScript and SASS? To be specific, is it possible to do those widget tricks with generic HTML and CSS like I'm attempting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code :&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;html&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN style="color: maroon;"&gt;body&lt;/SPAN&gt;,
&lt;SPAN style="color: maroon;"&gt;#viewDiv&lt;/SPAN&gt;&amp;nbsp;{
&lt;SPAN style="color: red;"&gt;padding&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;0&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;margin&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;0&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;height&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100%&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;width&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100%&lt;/SPAN&gt;;
}
&lt;SPAN style="color: maroon;"&gt;#sidePanel&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;{
&lt;SPAN style="color: red;"&gt;background-color&lt;/SPAN&gt;:&lt;SPAN style="color: blue;"&gt;#f00&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;height&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100px&lt;/SPAN&gt;;
&lt;SPAN style="color: red;"&gt;width&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: blue;"&gt;100px&lt;/SPAN&gt;;
}
&lt;SPAN style="color: blue;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;

Snippet&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: red;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"sidePanel"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: red;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"viewDiv"&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: red;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"esri-widget"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;screenshot :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="459614" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/459614_map.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333622#M30806</guid>
      <dc:creator>JerryChen</dc:creator>
      <dc:date>2021-12-11T15:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get Div to Be Contained in a Map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333623#M30807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Have you not seen this sample?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-feature-sidepanel"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-feature-sidepanel&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 16:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333623#M30807</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-09-16T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get Div to Be Contained in a Map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333624#M30808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample&amp;nbsp;mentioned above is a great way to create a side panel if you are trying to place something next to your map. You can also put HTML elements inside of your map (like you would with a widget) by using&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ui&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;yourDiv&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"top-right"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add"&gt;UI | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;for more information.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 00:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-div-to-be-contained-in-a-map/m-p/333624#M30808</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2019-09-17T00:08:35Z</dc:date>
    </item>
  </channel>
</rss>

