<?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: JavaScript API 4.24 Widgets being placed below MapView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209329#M78575</link>
    <description>&lt;P&gt;You have an extra space in your css link line. It should be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.24/esri/themes/light/main.css"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 19:33:58 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-09-02T19:33:58Z</dc:date>
    <item>
      <title>JavaScript API 4.24 Widgets being placed below MapView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209299#M78574</link>
      <description>&lt;P&gt;Hi everyone. Noobie JavaScript API user question here. I have a very simple web map that I'm building and having trouble with placing widgets where I'd like them to go. This web map has just one div element, and a MapView is applied to that div. I then add two widgets; a scale bar, and a basemap gallery. I set the view=view, and am trying to use the view.ui.add method to place the widgets within the MapView. However, both widgets appear underneath the map, not visible on the webpage until the user scrolls down. I've also tried setting the container property of the widgets to the one and only div, and they still appear under the map. I'm sure there's something I'm missing but I am having a challenging time finding the answer. Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html lang="en"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;ArcGIS API for JavaScript Tutorials: Display a map&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;&lt;BR /&gt;#viewDiv {&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="&lt;A href="https://js.arcgis.com/4.24/esri" target="_blank"&gt;https://js.arcgis.com/4.24/esri&lt;/A&gt; /themes/light/main.css"&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.24/" target="_blank"&gt;https://js.arcgis.com/4.24/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;require([&lt;BR /&gt;"esri/config",&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/Graphic",&lt;BR /&gt;"esri/layers/GraphicsLayer",&lt;BR /&gt;"esri/layers/FeatureLayer",&lt;BR /&gt;"esri/layers/VectorTileLayer",&lt;BR /&gt;"esri/widgets/Legend",&lt;BR /&gt;"esri/widgets/LayerList",&lt;BR /&gt;"esri/widgets/ScaleBar",&lt;BR /&gt;"esri/widgets/BasemapGallery"&lt;BR /&gt;&lt;BR /&gt;], function (esriConfig,Map, MapView, Graphic, GraphicsLayer, FeatureLayer, VectorTileLayer, Legend, LayerList, ScaleBar, BasemapGallery) {&lt;BR /&gt;esriConfig.apiKey = "AAPK2bcfac8c83094b77ac3df10268c0211d6sgT90p_JTa1Vlhb6eVQWqdUfS7E1YDU9AWCMzOVvkEldF2PkWJ4SxhXMZuXm1Dl";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;const map = new Map({&lt;BR /&gt;basemap: "arcgis-light-gray" // Basemap layer service&lt;BR /&gt;});&lt;BR /&gt;//instantiate the MapView class on view&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;//map property of Mapview == map variable&lt;BR /&gt;map: map,&lt;BR /&gt;center: [-118.805, 34.027], // Longitude, latitude&lt;BR /&gt;zoom: 10, // Zoom level&lt;BR /&gt;container: "viewDiv" // Div element&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;// Add a scalebar -------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;let scaleBar = new ScaleBar({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Add widget to the bottom left corner of the view&lt;BR /&gt;view.ui.add(scaleBar, {&lt;BR /&gt;position: "bottom-left"&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;view.ui.add(&lt;BR /&gt;new ScaleBar({&lt;BR /&gt;view,&lt;BR /&gt;unit: "dual"&lt;BR /&gt;}),&lt;BR /&gt;{&lt;BR /&gt;position: "bottom-left"&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Add basemap gallery -------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;const basemapGallery = new BasemapGallery({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Add the widget to the top-right corner of the view&lt;BR /&gt;view.ui.add(basemapGallery, {&lt;BR /&gt;position: "top-right"&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 18:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209299#M78574</guid>
      <dc:creator>barmstrong</dc:creator>
      <dc:date>2022-09-02T18:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API 4.24 Widgets being placed below MapView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209329#M78575</link>
      <description>&lt;P&gt;You have an extra space in your css link line. It should be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.24/esri/themes/light/main.css"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:33:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209329#M78575</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-02T19:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API 4.24 Widgets being placed below MapView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209407#M78576</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 20:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-24-widgets-being-placed-below/m-p/1209407#M78576</guid>
      <dc:creator>barmstrong</dc:creator>
      <dc:date>2022-09-02T20:45:21Z</dc:date>
    </item>
  </channel>
</rss>

