<?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: Tooltips on BasemapGallery with LocalBasemapsSource in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408345#M84286</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/5931"&gt;@ForrestLin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your LocalBaseMapSource will contain one or more Basemaps. If the Basemap is coming from ArcGIS Online (or ArcGIS Enterprise) then you can edit the tooltip text in your portal: it is the description you give to the item.&lt;/P&gt;&lt;P&gt;Alternatively, if your Basemap is coming from another source, you can give your Basemap a title which will pop up in the tooltip.&lt;/P&gt;&lt;P&gt;See code snippet below. For the Basemap which is based on the WMTSLayer, it is the title "BRT Achtergrondkaart (PDOK)" which will show in the tooltip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Basemap from "@arcgis/core/Basemap";
import WMTSLayer from "@arcgis/core/layers/WMTSLayer";
import LocalBasemapsSource from "@arcgis/core/widgets/BasemapGallery/support/LocalBasemapsSource";
import SpatialReference from "@arcgis/core/geometry/SpatialReference";

const epsg28992 = new SpatialReference({wkid:28992});

// // BRT Achtergrondkaart van PDOK als achtergrondkaart
let brt_Achtergrondkaart_PDOK = new Basemap({
  baseLayers: [
    new WMTSLayer({
      url: "https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0?",
      copyright:
        "&amp;lt;a target='_top' href='https://www.pdok.nl/introductie/-/article/basisregistratie-topografie-achtergrondkaarten-brt-a-'&amp;gt;BRT Achtergrondkaart&amp;lt;/a&amp;gt; van &amp;lt;a target='_top' href='https://www.pdok.nl/'&amp;gt;PDOK&amp;lt;/a&amp;gt;",
      activeLayer: {
        id: "brtachtergrondkaart"
      }
    })
  ],
  title: "BRT Achtergrondkaart (PDOK)",
  id: "brtachtergrondkaart",
  spatialReference: epsg28992, 
  thumbnailUrl: "brt_achtergrondkaart_pdok.jpg"
});

// Basiskaarten Esri Nederland
let topo_RD_EsriNL = new Basemap({portalItem: {id: "7aea6fa913a94176a1074edb40690318"}, id: "topo"}); // Topo RD --&amp;gt; https://www.arcgis.com/home/item.html?id=7aea6fa913a94176a1074edb40690318
let hr_Luchtfoto_Actueel = new Basemap({portalItem: {id: "9455a421f9a74887b03593cfa410abdf"}, id: "luchtfoto_hr"}); //Hoge Resolutie Luchtfoto RD
let lightGrayCanvas_RD_EsriNL = new Basemap({portalItem: {id: "9ff6521e85d24df1aa9cd4aebfef748b"}, id: "lichtgrijs"}); //Lichtgrijze Canvas RD
let darkGrayCanvas_RD_EsriNL = new Basemap({portalItem: {id: "62a3befb579e4d9f9c5c51576c8a7c25"}, id: "donkergrijs"}); //Donkergrijze Canvas RD
let osm_RD_EsriNL = new Basemap({portalItem: {id: "37292449670841d5bf5d590f4940c368"}, id: "osm_rd"}); //OpenStreetMap in RD via Esri Nederland

let baseMaps  = new LocalBasemapsSource({
  basemaps: [brt_Achtergrondkaart_PDOK, topo_RD_EsriNL, hr_Luchtfoto_Actueel, lightGrayCanvas_RD_EsriNL, darkGrayCanvas_RD_EsriNL, osm_RD_EsriNL]
});

export { baseMaps };&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 11 Apr 2024 08:47:29 GMT</pubDate>
    <dc:creator>Egge-Jan_Pollé</dc:creator>
    <dc:date>2024-04-11T08:47:29Z</dc:date>
    <item>
      <title>Tooltips on BasemapGallery with LocalBasemapsSource from GIS Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408023#M84278</link>
      <description>&lt;P&gt;I created a&amp;nbsp;BasemapGallery with LocalBasemapsSource from &lt;STRONG&gt;map service hosted in GIS Server&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;const&amp;nbsp;myBasemaps = [&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;new TileLayer({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url: "&lt;STRONG&gt;&lt;A href="https://myhost.com/arcgis/rest/services/OCPA/Aerials2023/MapServer" target="_blank"&gt;https://myhost.com/arcgis/rest/services/OCPA/Aerials2023/MapServer&lt;/A&gt;&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; })&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;const basemapGallery = new BasemapGallery({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; view: this.view,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; container: "basemap-gallery",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; source: new LocalBasemapsSource({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; basemaps: myBasemaps&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;})&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;How to setup&amp;nbsp;Tooltips like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ForrestLin_0-1712765395667.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100591iBFEB75F08750F199/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ForrestLin_0-1712765395667.png" alt="ForrestLin_0-1712765395667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Forrest&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 20:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408023#M84278</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-04-11T20:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408345#M84286</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/5931"&gt;@ForrestLin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your LocalBaseMapSource will contain one or more Basemaps. If the Basemap is coming from ArcGIS Online (or ArcGIS Enterprise) then you can edit the tooltip text in your portal: it is the description you give to the item.&lt;/P&gt;&lt;P&gt;Alternatively, if your Basemap is coming from another source, you can give your Basemap a title which will pop up in the tooltip.&lt;/P&gt;&lt;P&gt;See code snippet below. For the Basemap which is based on the WMTSLayer, it is the title "BRT Achtergrondkaart (PDOK)" which will show in the tooltip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Basemap from "@arcgis/core/Basemap";
import WMTSLayer from "@arcgis/core/layers/WMTSLayer";
import LocalBasemapsSource from "@arcgis/core/widgets/BasemapGallery/support/LocalBasemapsSource";
import SpatialReference from "@arcgis/core/geometry/SpatialReference";

const epsg28992 = new SpatialReference({wkid:28992});

// // BRT Achtergrondkaart van PDOK als achtergrondkaart
let brt_Achtergrondkaart_PDOK = new Basemap({
  baseLayers: [
    new WMTSLayer({
      url: "https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0?",
      copyright:
        "&amp;lt;a target='_top' href='https://www.pdok.nl/introductie/-/article/basisregistratie-topografie-achtergrondkaarten-brt-a-'&amp;gt;BRT Achtergrondkaart&amp;lt;/a&amp;gt; van &amp;lt;a target='_top' href='https://www.pdok.nl/'&amp;gt;PDOK&amp;lt;/a&amp;gt;",
      activeLayer: {
        id: "brtachtergrondkaart"
      }
    })
  ],
  title: "BRT Achtergrondkaart (PDOK)",
  id: "brtachtergrondkaart",
  spatialReference: epsg28992, 
  thumbnailUrl: "brt_achtergrondkaart_pdok.jpg"
});

// Basiskaarten Esri Nederland
let topo_RD_EsriNL = new Basemap({portalItem: {id: "7aea6fa913a94176a1074edb40690318"}, id: "topo"}); // Topo RD --&amp;gt; https://www.arcgis.com/home/item.html?id=7aea6fa913a94176a1074edb40690318
let hr_Luchtfoto_Actueel = new Basemap({portalItem: {id: "9455a421f9a74887b03593cfa410abdf"}, id: "luchtfoto_hr"}); //Hoge Resolutie Luchtfoto RD
let lightGrayCanvas_RD_EsriNL = new Basemap({portalItem: {id: "9ff6521e85d24df1aa9cd4aebfef748b"}, id: "lichtgrijs"}); //Lichtgrijze Canvas RD
let darkGrayCanvas_RD_EsriNL = new Basemap({portalItem: {id: "62a3befb579e4d9f9c5c51576c8a7c25"}, id: "donkergrijs"}); //Donkergrijze Canvas RD
let osm_RD_EsriNL = new Basemap({portalItem: {id: "37292449670841d5bf5d590f4940c368"}, id: "osm_rd"}); //OpenStreetMap in RD via Esri Nederland

let baseMaps  = new LocalBasemapsSource({
  basemaps: [brt_Achtergrondkaart_PDOK, topo_RD_EsriNL, hr_Luchtfoto_Actueel, lightGrayCanvas_RD_EsriNL, darkGrayCanvas_RD_EsriNL, osm_RD_EsriNL]
});

export { baseMaps };&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Apr 2024 08:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408345#M84286</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2024-04-11T08:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408479#M84290</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/281637"&gt;@Egge-Jan_Pollé&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did the same as you did.&amp;nbsp;&lt;/P&gt;&lt;P&gt;const basemap = new Basemap({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;id,&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title: "Aerial 2023",&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;thumbnailUrl,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;baseLayers: [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;new TileLayer({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;})]&lt;BR /&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;But how to setup tooltip: &lt;STRONG&gt;"Orthos imagery [Date: Jan, 2023]"&lt;/STRONG&gt;, which is different from title:&lt;STRONG&gt; "Aerial 2023"&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ForrestLin_0-1712837616628.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100663i0572424F89BF5760/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ForrestLin_0-1712837616628.png" alt="ForrestLin_0-1712837616628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ForrestLin_1-1712838271856.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100664i9919E3DA1AE74C60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ForrestLin_1-1712838271856.png" alt="ForrestLin_1-1712838271856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Forrest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 12:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408479#M84290</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-04-11T12:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408563#M84292</link>
      <description>&lt;P&gt;Hmmm, what is the source of your TileLayer? Can you set a description in the portal, as indicated in the first part of my answer above...?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408563#M84292</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2024-04-11T15:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408582#M84295</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/281637"&gt;@Egge-Jan_Pollé&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source of&amp;nbsp;&lt;SPAN&gt;TileLayer&lt;/SPAN&gt; is from ArcGIS Server, not from ArcGIS Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How/Where to set a&amp;nbsp;&lt;SPAN&gt;description in&amp;nbsp;ArcGIS Server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ForrestLin_0-1712851062937.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100683iA41B05E27C9C1F22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ForrestLin_0-1712851062937.png" alt="ForrestLin_0-1712851062937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Forrest&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 16:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408582#M84295</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-04-11T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408745#M84296</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/281637"&gt;@Egge-Jan_Pollé&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;&lt;SPAN&gt;the source of my TileLayer is from portal and set the summary, then the tooltip works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ForrestLin_0-1712868091121.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100733i14D098222F260582/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ForrestLin_0-1712868091121.png" alt="ForrestLin_0-1712868091121.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if it can be set in code.&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;</description>
      <pubDate>Thu, 11 Apr 2024 20:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408745#M84296</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-04-11T20:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource from GIS Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408812#M84297</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/5931"&gt;@ForrestLin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for checking this out. I think it works 'as designed': Esri, of course, wants you to use their portal, and - as you indicate - the summary you set there will appear in the popup.&lt;/P&gt;&lt;P&gt;There is no way, as far as I know, to set this popup text in the code. Can someone from Esri confirm? Code wise, you can only set the title, which will then appear in the popup (like in my code snippet above).&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 22:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408812#M84297</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2024-04-11T22:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips on BasemapGallery with LocalBasemapsSource from GIS Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408971#M84302</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/281637"&gt;@Egge-Jan_Pollé&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Forrest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 13:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltips-on-basemapgallery-with/m-p/1408971#M84302</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-04-12T13:58:01Z</dc:date>
    </item>
  </channel>
</rss>

