<?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: lost my header in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331755#M82291</link>
    <description>&lt;P&gt;Since you are using the Calcite Design System, I would recommend wrapping everything in a &lt;A href="https://developers.arcgis.com/calcite-design-system/components/shell/" target="_blank" rel="noopener"&gt;calcite-shell&lt;/A&gt; and then use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/calcite-design-system/components/shell/#api-reference-slots-header" target="_blank" rel="noopener"&gt;header slot&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell&amp;gt;
&amp;lt;h2 slot="header"&amp;gt;Title&amp;lt;/h2&amp;gt;
&amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also there is now the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/navigation/" target="_blank" rel="noopener"&gt;calcite-navigation&lt;/A&gt; component, which is one of the new components.&amp;nbsp; You can use the header slot on it too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell&amp;gt;
   &amp;lt;calcite-navigation slot="header"&amp;gt;
      &amp;lt;calcite-navigation-logo slot="logo" heading="My App Title"&amp;gt;
      &amp;lt;/calcite-navigation-logo&amp;gt;        
   &amp;lt;/calcite-navigation&amp;gt; 
&amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also just a note on including code in your posts on the Community, you can use the &amp;lt;/&amp;gt; button and paste your code in.&amp;nbsp; Much easier to read that way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2023 15:40:25 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2023-09-23T15:40:25Z</dc:date>
    <item>
      <title>lost my header</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1330990#M82269</link>
      <description>&lt;P&gt;Dear Colleagues, I am very new to JavaScript and cannot make a header on this map I have designed with help from sdk, any assistance here would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;lt;html lang="en"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&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;Pie charts | Sample | ArcGIS Maps SDK for JavaScript 4.27&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel="stylesheet" href="&lt;A href="https://js.arcgis.com/4.27/esri/themes/light/main.css" target="_blank"&gt;https://js.arcgis.com/4.27/esri/themes/light/main.css&lt;/A&gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.27/" target="_blank"&gt;https://js.arcgis.com/4.27/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script type="module" src="&lt;A href="https://js.arcgis.com/calcite-components/1.4.2/calcite.esm.js" target="_blank"&gt;https://js.arcgis.com/calcite-components/1.4.2/calcite.esm.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" type="text/css" href="&lt;A href="https://js.arcgis.com/calcite-components/1.4.2/calcite.css" target="_blank"&gt;https://js.arcgis.com/calcite-components/1.4.2/calcite.css&lt;/A&gt;" /&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;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#filter {&lt;BR /&gt;background-color: white;&lt;BR /&gt;width: 400px;&lt;BR /&gt;}&lt;BR /&gt;.btns {&lt;BR /&gt;float: right;&lt;BR /&gt;padding-top: 5px;&lt;BR /&gt;}&lt;BR /&gt;#error {&lt;BR /&gt;color: red;&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#heading {&lt;BR /&gt;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;background-color: #f0f0f0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.header {&lt;BR /&gt;text-align: left;&lt;BR /&gt;background: #cca1a2;&lt;BR /&gt;color: rgb(255, 255, 255, 0.9);&lt;BR /&gt;height: 44px;&lt;BR /&gt;display: flex;&lt;BR /&gt;align-items: center;&lt;BR /&gt;font-weight: bolder;&lt;BR /&gt;font-size: 24pt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.header img {&lt;BR /&gt;height: 40px;&lt;BR /&gt;margin: 0 8px 0 8px;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;require([&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/layers/FeatureLayer",&lt;BR /&gt;"esri/widgets/Legend",&lt;BR /&gt;"esri/widgets/Expand"&lt;BR /&gt;], (Map, MapView, FeatureLayer, Legend, Expand) =&amp;gt; {&lt;BR /&gt;const map = new Map({&lt;BR /&gt;basemap: "gray-vector"&lt;BR /&gt;});&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;map: map,&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;center: [32.059, 48.444431],&lt;BR /&gt;  zoom: 6,&lt;BR /&gt;constraints: {&lt;BR /&gt;minScale: 9500000,&lt;BR /&gt;maxScale: 900000,&lt;BR /&gt;snapToZoom: false&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;const layer = new FeatureLayer({&lt;BR /&gt;url: "&lt;A href="https://services.arcgis.com/qovwaCdMoEzUUFzS/arcgis/rest/services/ukr_adm2_NFI/FeatureServer/0" target="_blank"&gt;https://services.arcgis.com/qovwaCdMoEzUUFzS/arcgis/rest/services/ukr_adm2_NFI/FeatureServer/0&lt;/A&gt;",&lt;BR /&gt;renderer: {&lt;BR /&gt;type: "pie-chart", // autocasts as new PieChartRenderer&lt;BR /&gt;size: 75,&lt;BR /&gt;attributes: [&lt;BR /&gt;{&lt;BR /&gt;color: "#b27273",&lt;BR /&gt;label: "Provision of NFIs",&lt;BR /&gt;field: "Provision_of_NFIs"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;color: "#cca1a2",&lt;BR /&gt;field: "Provision_of_Winter_Clothes",&lt;BR /&gt;label: "Winter Clothes"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;color: "#e5d0d0",&lt;BR /&gt;field: "Support_winter_energy_needs",&lt;BR /&gt;label: "Winter Energy Needs"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;backgroundFillSymbol: { // polygon fill behind pie chart&lt;BR /&gt;color: [10, 10, 10, 0],&lt;BR /&gt;outline: {&lt;BR /&gt;width: 0.75,&lt;BR /&gt;color: [0, 0, 0, 0.3]&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;outline: {&lt;BR /&gt;width: 1.0,&lt;BR /&gt;color: "gray"&lt;BR /&gt;},&lt;BR /&gt;visualVariables: [&lt;BR /&gt;{&lt;BR /&gt;type: "size",&lt;BR /&gt;valueExpression:&lt;BR /&gt;"$feature.Total",&lt;BR /&gt;minDataValue: 1,&lt;BR /&gt;maxDataValue: 120000,&lt;BR /&gt;minSize: 15,&lt;BR /&gt;maxSize: 85&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;popupTemplate: {&lt;BR /&gt;title: "&amp;lt;centre&amp;gt;Breakdown by NFI Activities&amp;lt;/center&amp;gt;&amp;lt;br&amp;gt;Oblast: {ADM1_EN}&amp;lt;/br&amp;gt;Raoin: {ADM2_EN}",&lt;BR /&gt;content: [&lt;BR /&gt;{&lt;BR /&gt;type: "media",&lt;BR /&gt;mediaInfos: [&lt;BR /&gt;{&lt;BR /&gt;title: "Breakdown of People Reached by NFI Activities",&lt;BR /&gt;type: "pie-chart",&lt;BR /&gt;value: {&lt;BR /&gt;fields: ["Support_winter_energy_needs", "Provision_of_Winter_Clothes", "Provision_of_NFIs"]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;type: "fields",&lt;BR /&gt;fieldInfos: [&lt;BR /&gt;{&lt;BR /&gt;fieldName: "Support_winter_energy_needs",&lt;BR /&gt;label: "Number of people given cash for Energy Needs",&lt;BR /&gt;format: {&lt;BR /&gt;digitSeparator: true&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;fieldName: "Provision_of_Winter_Clothes",&lt;BR /&gt;label: "Number of people given winter wear",&lt;BR /&gt;format: {&lt;BR /&gt;digitSeparator: true&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;fieldName: "Provision_of_NFIs",&lt;BR /&gt;label: "Number of people given NFIs",&lt;BR /&gt;format: {&lt;BR /&gt;digitSeparator: true&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;fieldInfos: [&lt;BR /&gt;{&lt;BR /&gt;fieldName: "Support_winter_energy_needs",&lt;BR /&gt;label: "Number of people given cash for Energy Needs"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;fieldName: "Provision_of_Winter_Clothes",&lt;BR /&gt;label: "Number of people given winter wear"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;fieldName: "Provision_of_NFIs",&lt;BR /&gt;label: "Number of people given NFIs"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;expressionInfos: [&lt;BR /&gt;{&lt;BR /&gt;name: "percent-nfi",&lt;BR /&gt;title: "Percent given NFI",&lt;BR /&gt;expression:&lt;BR /&gt;"ROUND((($feature.Provision_of_NFIs/$feature.Total)*100),2)+ '%'",&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;map.add(layer);&lt;BR /&gt;layer.definitionExpression = "Total &amp;lt;&amp;gt; '0'";&lt;/P&gt;&lt;P&gt;const legend = new Legend({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;BR /&gt;view.ui.add(legend, "bottom-left");&lt;/P&gt;&lt;P&gt;view.ui.add(&lt;BR /&gt;new Expand({&lt;BR /&gt;content: document.getElementById("filter"),&lt;BR /&gt;view: view,&lt;BR /&gt;expandIcon: "sliders-horizontal",&lt;BR /&gt;expandTooltip: "Filter"&lt;BR /&gt;}),&lt;BR /&gt;"top-right"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;const filterBy = document.getElementById("filterBy");&lt;BR /&gt;const operator = document.getElementById("operator");&lt;BR /&gt;const filterPct = document.getElementById("filterPct");&lt;/P&gt;&lt;P&gt;document.getElementById("filterBtn").addEventListener("click", () =&amp;gt; {&lt;BR /&gt;if (filterBy.value &amp;amp;&amp;amp; operator.value &amp;amp;&amp;amp; filterPct.value) {&lt;BR /&gt;document.getElementById("error").style.display = "none";&lt;BR /&gt;let filterStr =&lt;BR /&gt;"(" +&lt;BR /&gt;filterBy.value +&lt;BR /&gt;"/ (Provision_of_Winter_Clothes + Support_winter_energy_needs + Provision_of_NFIs) *100 )" +&lt;BR /&gt;operator.value +&lt;BR /&gt;filterPct.value;&lt;BR /&gt;layer.featureEffect = {&lt;BR /&gt;filter: {&lt;BR /&gt;where: filterStr&lt;BR /&gt;},&lt;BR /&gt;excludedEffect: "opacity(20%)"&lt;BR /&gt;};&lt;BR /&gt;} else {&lt;BR /&gt;document.getElementById("error").style.display = "block";&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;document.getElementById("resetBtn").addEventListener("click", () =&amp;gt; {&lt;BR /&gt;document.getElementById("error").style.display = "none";&lt;BR /&gt;layer.featureEffect = null;&lt;BR /&gt;filterPct.value = null;&lt;BR /&gt;});&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;calcite-card id="filter"&amp;gt;&lt;BR /&gt;&amp;lt;h3&amp;gt;FILTER BY:&amp;lt;/h3&amp;gt;&lt;BR /&gt;&amp;lt;calcite-segmented-control id="filterBy"&amp;gt;&lt;BR /&gt;&amp;lt;calcite-segmented-control-item value="Provision_of_NFIs" checked&amp;gt;Provision of NFI &amp;lt;/calcite-segmented-control-item&amp;gt;&lt;BR /&gt;&amp;lt;calcite-segmented-control-item value="Provision_of_Winter_Clothes"&amp;gt;Provision of Winter Clothes&amp;lt;/calcite-segmented-control-item&amp;gt;&lt;BR /&gt;&amp;lt;calcite-segmented-control-item value="Support_winter_energy_needs"&amp;gt;Support Winter Energy Needs&amp;lt;/calcite-segmented-control-item&amp;gt;&lt;BR /&gt;&amp;lt;/calcite-segmented-control&amp;gt;&lt;BR /&gt;&amp;lt;span&amp;gt;&lt;BR /&gt;&amp;lt;calcite-select id="operator" style="width: 50%; float: left"&amp;gt;&lt;BR /&gt;&amp;lt;calcite-option value="&amp;gt;" selected&amp;gt;Greater than&amp;lt;/calcite-option&amp;gt;&lt;BR /&gt;&amp;lt;calcite-option value="&amp;lt;"&amp;gt;Less than&amp;lt;/calcite-option&amp;gt;&lt;BR /&gt;&amp;lt;/calcite-select&amp;gt;&lt;BR /&gt;&amp;lt;calcite-input id="filterPct" type="number" min="0" max="100" suffix-text="%"&amp;gt;&amp;lt;/calcite-input&amp;gt;&lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span id="error"&amp;gt;All fields must have value in order to filter.&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span class="btns"&amp;gt;&lt;BR /&gt;&amp;lt;calcite-button id="resetBtn" appearance="outline"&amp;gt;Reset&amp;lt;/calcite-button&amp;gt;&lt;BR /&gt;&amp;lt;calcite-button id="filterBtn"&amp;gt;Filter&amp;lt;/calcite-button&amp;gt;&lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/calcite-card&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 11:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1330990#M82269</guid>
      <dc:creator>tiwariC</dc:creator>
      <dc:date>2023-09-21T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: lost my header</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331122#M82270</link>
      <description>&lt;P&gt;I hope it is helpful&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/victorvargas/pen/GRPyXRp" target="_self"&gt;codepen.io&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331122#M82270</guid>
      <dc:creator>vmvargas</dc:creator>
      <dc:date>2023-09-21T15:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: lost my header</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331363#M82279</link>
      <description>&lt;P&gt;I don't what the difference was, but I stubbed in my code into your template and it worked like charm.&amp;nbsp; Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 07:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331363#M82279</guid>
      <dc:creator>tiwariC</dc:creator>
      <dc:date>2023-09-22T07:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: lost my header</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331755#M82291</link>
      <description>&lt;P&gt;Since you are using the Calcite Design System, I would recommend wrapping everything in a &lt;A href="https://developers.arcgis.com/calcite-design-system/components/shell/" target="_blank" rel="noopener"&gt;calcite-shell&lt;/A&gt; and then use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/calcite-design-system/components/shell/#api-reference-slots-header" target="_blank" rel="noopener"&gt;header slot&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell&amp;gt;
&amp;lt;h2 slot="header"&amp;gt;Title&amp;lt;/h2&amp;gt;
&amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also there is now the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/navigation/" target="_blank" rel="noopener"&gt;calcite-navigation&lt;/A&gt; component, which is one of the new components.&amp;nbsp; You can use the header slot on it too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell&amp;gt;
   &amp;lt;calcite-navigation slot="header"&amp;gt;
      &amp;lt;calcite-navigation-logo slot="logo" heading="My App Title"&amp;gt;
      &amp;lt;/calcite-navigation-logo&amp;gt;        
   &amp;lt;/calcite-navigation&amp;gt; 
&amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also just a note on including code in your posts on the Community, you can use the &amp;lt;/&amp;gt; button and paste your code in.&amp;nbsp; Much easier to read that way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 15:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/lost-my-header/m-p/1331755#M82291</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-09-23T15:40:25Z</dc:date>
    </item>
  </channel>
</rss>

