<?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: Changing Basemaps and Attribute Popups in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/changing-basemaps-and-attribute-popups/m-p/1011946#M3708</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428756"&gt;@GarrettRSmith&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a tool button in the MapView to change basemap is pretty straightforward, we have a sample in AppStudio Desktop that is based on the ArcGIS Runtime Qt Change Basemap sample,&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/latest/qml/sample-code/change-basemap/" target="_blank"&gt;https://developers.arcgis.com/qt/latest/qml/sample-code/change-basemap/&lt;/A&gt;&amp;nbsp;that you can look into.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding it to QuickReport/pages/RefineLocationPage.qml around line ~930 inside the toolsContainer of the MapView. I simply copied the other Rectangle Image from the other tool, change the image source and the Mouse Area onclicked event to do change basemap,&amp;nbsp; from the sample above. I only add a logic to change the basemap to BasemapOceans, I think you can add the logic between the two basemaps that you want to switch around. Please see below screenshots and attached&amp;nbsp; RefineLocationPage.qml changes that I did for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-12-22 at 5.04.18 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2781i7A1E038D6414FFEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-12-22 at 5.04.18 PM.png" alt="Screen Shot 2020-12-22 at 5.04.18 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helpful,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 01:11:48 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2020-12-23T01:11:48Z</dc:date>
    <item>
      <title>Changing Basemaps and Attribute Popups</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/changing-basemaps-and-attribute-popups/m-p/1011258#M3701</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Does anyone have any really simple ideas about how to add a button/option to change basemaps on the QuickReport templates map page? I have tried a couple of variations I have found online but they are not what I am looking for. I only want two basemaps; topo and satellite.&lt;/P&gt;&lt;P&gt;Also, is there any simple examples about adding attribute popup functionality to the same map page referenced above.&lt;/P&gt;&lt;P&gt;I have tried to take apart the Map Viewer template, but when I try and apply the code, controls, images, etc.. to the QuickReport template it does not work. I am also really new to this realm so I probably need a little more hand holding than these templates allow for.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 23:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/changing-basemaps-and-attribute-popups/m-p/1011258#M3701</guid>
      <dc:creator>GarrettRSmith</dc:creator>
      <dc:date>2020-12-19T23:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Basemaps and Attribute Popups</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/changing-basemaps-and-attribute-popups/m-p/1011946#M3708</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428756"&gt;@GarrettRSmith&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a tool button in the MapView to change basemap is pretty straightforward, we have a sample in AppStudio Desktop that is based on the ArcGIS Runtime Qt Change Basemap sample,&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/latest/qml/sample-code/change-basemap/" target="_blank"&gt;https://developers.arcgis.com/qt/latest/qml/sample-code/change-basemap/&lt;/A&gt;&amp;nbsp;that you can look into.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding it to QuickReport/pages/RefineLocationPage.qml around line ~930 inside the toolsContainer of the MapView. I simply copied the other Rectangle Image from the other tool, change the image source and the Mouse Area onclicked event to do change basemap,&amp;nbsp; from the sample above. I only add a logic to change the basemap to BasemapOceans, I think you can add the logic between the two basemaps that you want to switch around. Please see below screenshots and attached&amp;nbsp; RefineLocationPage.qml changes that I did for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-12-22 at 5.04.18 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2781i7A1E038D6414FFEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-12-22 at 5.04.18 PM.png" alt="Screen Shot 2020-12-22 at 5.04.18 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helpful,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 01:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/changing-basemaps-and-attribute-popups/m-p/1011946#M3708</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2020-12-23T01:11:48Z</dc:date>
    </item>
  </channel>
</rss>

