<?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 the FloorFilter widget to work with Map instead of WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055013#M72950</link>
    <description>&lt;P&gt;Hello everyone I've been trying to implement the new FloorFilter widget with a Map instead of a WebMap, I added the LayerFloorInfo property to the layers but yet I cannot seem to get it to work, does my data needs to have some sort of pattern or name them in a certain way? I was looking at the thread here&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/cannot-get-new-floorfilter-widget-working/m-p/1053950#M72853" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/cannot-get-new-floorfilter-widget-working/m-p/1053950#M72853&lt;/A&gt;&amp;nbsp;but they seem to be using WebMap as well, not quit what I'm looking for.&lt;/P&gt;&lt;P&gt;I tried following the example from the docs but it wasn't of much help since the example uses a WebMap and all it does is add the widget to the view like any other widget.&lt;/P&gt;&lt;P&gt;Any help would be appreciate it!&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 01:36:51 GMT</pubDate>
    <dc:creator>Annthonny123</dc:creator>
    <dc:date>2021-05-06T01:36:51Z</dc:date>
    <item>
      <title>how to get the FloorFilter widget to work with Map instead of WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055013#M72950</link>
      <description>&lt;P&gt;Hello everyone I've been trying to implement the new FloorFilter widget with a Map instead of a WebMap, I added the LayerFloorInfo property to the layers but yet I cannot seem to get it to work, does my data needs to have some sort of pattern or name them in a certain way? I was looking at the thread here&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/cannot-get-new-floorfilter-widget-working/m-p/1053950#M72853" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/cannot-get-new-floorfilter-widget-working/m-p/1053950#M72853&lt;/A&gt;&amp;nbsp;but they seem to be using WebMap as well, not quit what I'm looking for.&lt;/P&gt;&lt;P&gt;I tried following the example from the docs but it wasn't of much help since the example uses a WebMap and all it does is add the widget to the view like any other widget.&lt;/P&gt;&lt;P&gt;Any help would be appreciate it!&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 01:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055013#M72950</guid>
      <dc:creator>Annthonny123</dc:creator>
      <dc:date>2021-05-06T01:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the FloorFilter widget to work with Map instead of WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055177#M72955</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/479380"&gt;@Annthonny123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide some screen shots?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 13:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055177#M72955</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-05-06T13:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the FloorFilter widget to work with Map instead of WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055217#M72958</link>
      <description>&lt;P&gt;Sure,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/40123"&gt;@RickeyFight&lt;/a&gt;&amp;nbsp; I'm attaching screenshots of the data fields, I have four layers&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-06 at 6.33.26 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12732i3D425A46AB5A5C23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-06 at 6.33.26 AM.png" alt="Screen Shot 2021-05-06 at 6.33.26 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-06 at 6.33.51 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12733i28B741C315A2CFE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-06 at 6.33.51 AM.png" alt="Screen Shot 2021-05-06 at 6.33.51 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-06 at 6.34.02 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12734i2047BA515C2F2778/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-06 at 6.34.02 AM.png" alt="Screen Shot 2021-05-06 at 6.34.02 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-06 at 6.34.27 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12735iFCBC741A93A62891/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-06 at 6.34.27 AM.png" alt="Screen Shot 2021-05-06 at 6.34.27 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I iterate over the layers and add the floorInfo property, and add the widget to the view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layerFloorInfo = new LayerFloorInfo({
  floorField: 'FLOORID',
});

// iterate through layers and add floorInfo property to each of them
layers.forEach((layer: __esri.FeatureLayer) =&amp;gt; {
  layer.floorInfo = layerFloorInfo;
});

const floorFilter = new FloorFilter({ view: view });
view.ui.add(floorFilter, { position: 'top-left', index: 2 })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the widget is disabled and won't give me any options of the data or anything at all,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-05-06 at 6.59.52 AM.png" style="width: 152px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12736i1AF49CD77FC4B385/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-06 at 6.59.52 AM.png" alt="Screen Shot 2021-05-06 at 6.59.52 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1055217#M72958</guid>
      <dc:creator>Annthonny123</dc:creator>
      <dc:date>2021-05-06T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the FloorFilter widget to work with Map instead of WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1057927#M73107</link>
      <description>&lt;P&gt;In order to make a floor-aware map with the JavaScript API, you will need to use the WebMap class instead of Map.&amp;nbsp; Once you have a WebMap, you can then set its &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#floorInfo" target="_blank" rel="noopener"&gt;floorInfo property&lt;/A&gt;.&amp;nbsp; The layers that you choose to represent facilities and floor levels must follow a specific schema.&amp;nbsp; Learn more here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/indoors/configure-floor-aware-maps.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/indoors/configure-floor-aware-maps.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That floor info in the WebMap is what enables the FloorFilter widget to show facilities/levels to choose from.&lt;/P&gt;&lt;P&gt;An alternative to the JavaScript API for floor-aware map creation, if you have ArcGIS Pro, is to use the newly available ArcGIS Pro 2.8 to set the floor properties on your map before sharing as a webmap.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/indoors/floor-aware-maps.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/indoors/floor-aware-maps.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 23:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1057927#M73107</guid>
      <dc:creator>tomhillgeo</dc:creator>
      <dc:date>2021-05-13T23:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the FloorFilter widget to work with Map instead of WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1058027#M73115</link>
      <description>&lt;P&gt;this worked for me:&lt;/P&gt;&lt;P&gt;const mySiteLayerInfo = new SiteLayerInfo({&lt;BR /&gt;layerId: "sites_view_9488",&lt;BR /&gt;siteIdField: "SITE_ID",&lt;BR /&gt;nameField: "NAME",&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const myFacilityLayerInfo = new FacilityLayerInfo({&lt;BR /&gt;facilityIdField: "FACILITY_ID",&lt;BR /&gt;layerId: "facilities_view_8594",&lt;BR /&gt;nameField: "NAME",&lt;BR /&gt;longNameField: "NAME_LONG",&lt;BR /&gt;siteIdField: "SITE_ID",&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const myLevelLayerInfo = new LevelLayerInfo({&lt;BR /&gt;facilityIdField: "FACILITY_ID",&lt;BR /&gt;layerId: "levels_view_4226",&lt;BR /&gt;levelIdField: "LEVEL_ID",&lt;BR /&gt;levelNumberField: "LEVEL_NUMBER",&lt;BR /&gt;longNameField: "NAME",&lt;BR /&gt;shortNameField: "NAME_SHORT",&lt;BR /&gt;verticalOrderField: "VERTICAL_ORDER",&lt;BR /&gt;floorField: "LEVEL_ID",&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const myFloorInfo = new MapFloorInfo({&lt;BR /&gt;siteLayer: mySiteLayerInfo,&lt;BR /&gt;facilityLayer: myFacilityLayerInfo,&lt;BR /&gt;levelLayer: myLevelLayerInfo,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const webmap = new WebMap({&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: "1c020f2cdab3436ca7d54facf6bfab00",&lt;BR /&gt;},&lt;BR /&gt;floorInfo: myFloorInfo,&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 13:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-floorfilter-widget-to-work-with-map/m-p/1058027#M73115</guid>
      <dc:creator>johnbrosowsky</dc:creator>
      <dc:date>2021-05-14T13:39:25Z</dc:date>
    </item>
  </channel>
</rss>

