<?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 Layers added in Map1 is not available in second Map 2, Compare Map view in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1345466#M82676</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am working on compare map view( Map1 &amp;amp; Map2) on single screen using ArcGIS JS API 4.27.&lt;/P&gt;&lt;P&gt;First I added layers on Map1 and its working fine, and on compare button open second map Map2 and trying to add previously added Layers on Map1 into Map2.&amp;nbsp; But Layers are now added in Map2 but it is removed from Map1. Why?&lt;/P&gt;&lt;P&gt;I do not want to create 2 Layers for each Map1 &amp;amp; Map2.&lt;/P&gt;&lt;P&gt;My requirement is to add Layers which already added in Map1 into Map2 and it should not be removed from Map1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 11:33:34 GMT</pubDate>
    <dc:creator>SaurabhUpadhyaya</dc:creator>
    <dc:date>2023-11-03T11:33:34Z</dc:date>
    <item>
      <title>Layers added in Map1 is not available in second Map 2, Compare Map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1345466#M82676</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am working on compare map view( Map1 &amp;amp; Map2) on single screen using ArcGIS JS API 4.27.&lt;/P&gt;&lt;P&gt;First I added layers on Map1 and its working fine, and on compare button open second map Map2 and trying to add previously added Layers on Map1 into Map2.&amp;nbsp; But Layers are now added in Map2 but it is removed from Map1. Why?&lt;/P&gt;&lt;P&gt;I do not want to create 2 Layers for each Map1 &amp;amp; Map2.&lt;/P&gt;&lt;P&gt;My requirement is to add Layers which already added in Map1 into Map2 and it should not be removed from Map1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 11:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1345466#M82676</guid>
      <dc:creator>SaurabhUpadhyaya</dc:creator>
      <dc:date>2023-11-03T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Layers added in Map1 is not available in second Map 2, Compare Map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1345545#M82678</link>
      <description>&lt;P&gt;A single layer instance can only be placed in one map. But a single map can be used in multiple views.&lt;/P&gt;&lt;P&gt;Here is an example from the samples in the docs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/views-composite-views/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/views-composite-views/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 14:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1345545#M82678</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-11-03T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Layers added in Map1 is not available in second Map 2, Compare Map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1350151#M82786</link>
      <description>&lt;P&gt;We are working on ArcGIS JS API 4.28 and using MapImageLayer and join-table with standalone table and join is working perfectly.&lt;/P&gt;&lt;P&gt;We are facing the issue in displaying the Label on this joined map image layer but label is not displaying.&lt;/P&gt;&lt;P&gt;I am sharing the code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;var queryString =&lt;BR /&gt;"SELECT id,name from test";&lt;BR /&gt;const layer = new MapImageLayer({&lt;BR /&gt;url: "&lt;A href="https://sample/MapServer" target="_blank" rel="nofollow noopener noreferrer"&gt;https://sample/MapServer&lt;/A&gt;",&lt;BR /&gt;title: "United States Population",&lt;BR /&gt;sublayers: [&lt;BR /&gt;{&lt;BR /&gt;title: "Share of population with Norwegian Ancestry",&lt;BR /&gt;id: 0,&lt;BR /&gt;labelingInfo: [&lt;BR /&gt;{&lt;BR /&gt;labelExpression: "[name]",&lt;BR /&gt;labelPlacement: "always-horizontal",&lt;BR /&gt;symbol: {&lt;BR /&gt;type: "text", // autocasts as new TextSymbol()&lt;BR /&gt;color: [255, 255, 255, 0.7],&lt;BR /&gt;haloColor: [0, 0, 0, 0.7],&lt;BR /&gt;haloSize: 1,&lt;BR /&gt;font: {&lt;BR /&gt;size: 11,&lt;BR /&gt;},&lt;BR /&gt;},&lt;BR /&gt;&lt;BR /&gt;},&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;opacity: 0.75,&lt;BR /&gt;source: {&lt;BR /&gt;type: "data-layer",&lt;BR /&gt;dataSource: {&lt;BR /&gt;type: "join-table",&lt;BR /&gt;leftTableSource: {&lt;BR /&gt;type: "map-layer",&lt;BR /&gt;mapLayerId: 0,&lt;BR /&gt;},&lt;BR /&gt;rightTableSource: {&lt;BR /&gt;type: "data-layer",&lt;BR /&gt;dataSource: {&lt;BR /&gt;type: "query-table",&lt;BR /&gt;workspaceId: "testworkspace",&lt;BR /&gt;query: queryString,&lt;BR /&gt;oidFields: "id",&lt;BR /&gt;},&lt;BR /&gt;},&lt;BR /&gt;leftTableKey: "name",&lt;BR /&gt;rightTableKey: "name",&lt;BR /&gt;joinType: "left-outer-join",&lt;BR /&gt;},&lt;BR /&gt;},&lt;BR /&gt;},&lt;BR /&gt;],&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;Now I want to know how to display the label on joined tables?? and also want to know which fields will be displayed(Map Layer or System Table).. what is the syntax.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 09:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-added-in-map1-is-not-available-in-second/m-p/1350151#M82786</guid>
      <dc:creator>SaurabhUpadhyaya</dc:creator>
      <dc:date>2023-11-16T09:04:41Z</dc:date>
    </item>
  </channel>
</rss>

