<?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: Feature disappears in identify query in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218446#M4758</link>
    <description>&lt;P&gt;I dont do QML but with&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function geoElementsCountFromResult(identifyLayerResult) &lt;/LI-CODE&gt;&lt;P&gt;Isnt "identifyLayerResult" a claimed variable name at the global scope?&amp;nbsp; Maybe refactor that to something more unique and see if the behavior persists?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 22:25:29 GMT</pubDate>
    <dc:creator>TroyFoster</dc:creator>
    <dc:date>2022-10-03T22:25:29Z</dc:date>
    <item>
      <title>Finding a different and  disappearing feature in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218245#M4755</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp; using ArcGIS_Runtime_SDK_Qt_Windows_100_14_1 sdk. Im&amp;nbsp; using Qt Creator 7.0.2&amp;nbsp;Based on Qt 6.2.3 (MSVC 2019, 64 bit)&amp;nbsp; and Kits Qt 5.15.2&amp;nbsp; &amp;nbsp;(Android&amp;nbsp; Clang Multi -Abi and&amp;nbsp; MinGW 64-bit ) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I want to query two layers in an identify query ( mapView.identifyLayersWithMaxResults) , feature disappears.&amp;nbsp;This event happens in some cases. As a result of the query&amp;nbsp; identifyLayersResults lenght is 0 and&amp;nbsp;I am not getting any error.How can I solve this problem ?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Below is the video taken during Identify:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6313194895112w304h540r654" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6313194895112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6313194895112w304h540r654');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6313194895112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;All the codes used are as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KgmMapObject.qml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import QtQuick 2.6&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;/P&gt;&lt;P&gt;Rectangle {&lt;BR /&gt;id: appWindowObj&lt;BR /&gt;clip: true&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;property string msgText: ""&lt;/P&gt;&lt;P&gt;MapView {&lt;BR /&gt;id:mainViewObj&lt;BR /&gt;anchors.fill: parent&lt;BR /&gt;attributionTextVisible:false&lt;BR /&gt;// set focus to enable keyboard navigation&lt;BR /&gt;Component.onCompleted: {&lt;BR /&gt;&lt;BR /&gt;forceActiveFocus();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Map {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Basemap {&lt;/P&gt;&lt;P&gt;WebTiledLayer {&lt;/P&gt;&lt;P&gt;templateUrl: "http://.../wmts/.../gm_grid/{level}/{col}/{row}.png"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;FeatureLayer {&lt;BR /&gt;&lt;BR /&gt;ServiceFeatureTable {&lt;BR /&gt;url: "https://.../arcgis/rest/services/.../FeatureServer/0"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;FeatureLayer {&lt;/P&gt;&lt;P&gt;ServiceFeatureTable {&lt;/P&gt;&lt;P&gt;url: "https://.../arcgis/rest/services/.../FeatureServer/1"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ViewpointCenter {&lt;/P&gt;&lt;P&gt;Point {&lt;BR /&gt;x: 3894007.968960&lt;BR /&gt;y: 4749476.7008&lt;BR /&gt;spatialReference: SpatialReference { wkid: 3857 }&lt;BR /&gt;}&lt;BR /&gt;targetScale: 7000000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;onMouseClicked: {&lt;BR /&gt;const screenX = mouse.x;&lt;BR /&gt;const screenY = mouse.y;&lt;BR /&gt;const tolerance = 12;&lt;BR /&gt;const returnPopups = false;&lt;BR /&gt;const maxResults = 1;&lt;BR /&gt;mainViewObj.identifyLayersWithMaxResults(screenX, screenY, tolerance, returnPopups, maxResults);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// handle the identify results&lt;BR /&gt;onIdentifyLayersStatusChanged: {&lt;BR /&gt;if (identifyLayersStatus !== Enums.TaskStatusCompleted)&lt;BR /&gt;return;&lt;/P&gt;&lt;P&gt;msgText = "";&lt;BR /&gt;const results = mainViewObj.identifyLayersResults;&lt;/P&gt;&lt;P&gt;for (let i = 0; i &amp;lt; results.length; i++) {&lt;BR /&gt;const result = results[i];&lt;BR /&gt;const count = geoElementsCountFromResult(result);&lt;BR /&gt;const layerName = result.layerContent.name;&lt;/P&gt;&lt;P&gt;msgText += "%1 : %2".arg(layerName).arg(count);&lt;BR /&gt;// add new line character if not the final element in array&lt;BR /&gt;if (i !== results.length)&lt;BR /&gt;msgText += "\n";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (msgText.length &amp;gt; 0)&lt;BR /&gt;msgDialog.open();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;onErrorChanged: {&lt;BR /&gt;if (error)&lt;BR /&gt;{&lt;BR /&gt;console.log("error:", error.message, error.additionalMessage)&lt;/P&gt;&lt;P&gt;msgText=error.message+" "+error.additionalMessage;&lt;BR /&gt;msgDialog.open();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function geoElementsCountFromResult(layerObjResult) {&lt;BR /&gt;const tempResults = [layerObjResult];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let count = 0;&lt;BR /&gt;let index = 0;&lt;/P&gt;&lt;P&gt;while (index &amp;lt; tempResults.length) {&lt;BR /&gt;const identifyResult = tempResults[index];&lt;/P&gt;&lt;P&gt;count += identifyResult.geoElements.length;if (identifyResult.sublayerResults.length &amp;gt; 0) {&lt;BR /&gt;tempResults.push(identifyResult.sublayerResults[index]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index += 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return count;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Dialog {&lt;BR /&gt;id: msgDialog&lt;BR /&gt;modal: true&lt;BR /&gt;x: Math.round(parent.width - width) / 2&lt;BR /&gt;y: Math.round(parent.height - height) / 2&lt;BR /&gt;standardButtons: Dialog.Ok&lt;BR /&gt;property alias text : textLabel.text&lt;BR /&gt;Text {&lt;BR /&gt;id: textLabel&lt;BR /&gt;text: msgText&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main.qml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import QtQuick 2.12&lt;BR /&gt;import QtQuick.Controls 2.12&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ApplicationWindow {&lt;BR /&gt;id: window&lt;BR /&gt;width: 360&lt;BR /&gt;height: 520&lt;BR /&gt;visible: true&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;KgmMapObject{&lt;BR /&gt;id: kgmMapObj&lt;BR /&gt;anchors.top: parent.top&lt;BR /&gt;anchors.left: parent.left&lt;BR /&gt;anchors.right: parent.right&lt;BR /&gt;anchors.bottom: parent.bottom&lt;BR /&gt;visible: true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The content of one of the FeatureServices used is below as an image:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="esri1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53205iA84635B8461CE328/image-size/large?v=v2&amp;amp;px=999" role="button" title="esri1.PNG" alt="esri1.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="esri2.PNG" style="width: 941px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53206i0EFB5EE6BAA94469/image-size/large?v=v2&amp;amp;px=999" role="button" title="esri2.PNG" alt="esri2.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 09:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218245#M4755</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2022-10-10T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Feature disappears in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218347#M4756</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Let's walk through your code and try to flag down what's happening &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you clarify what&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;fieldsModel.clear()&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;is doing?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 17:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218347#M4756</guid>
      <dc:creator>Gela</dc:creator>
      <dc:date>2022-10-03T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Feature disappears in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218380#M4757</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I clear ListModel before identify result . I use ListModel to appear on Dialog . I open the dialog with the open() method after&amp;nbsp;&amp;nbsp;filling Feature(result from identify) value in List Model .&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is codes below:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ListModel {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id:fieldsModel&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dialog {&lt;/P&gt;&lt;P&gt;id: identifyDialog&lt;/P&gt;&lt;P&gt;title:"Yol Bilgisi"&lt;BR /&gt;modality: Qt.NonModal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;contentItem: Rectangle {&lt;BR /&gt;id: dialogRectangle&lt;/P&gt;&lt;P&gt;border.color: "black"&lt;BR /&gt;border.width: 3&lt;BR /&gt;radius: 10&lt;BR /&gt;color: "white"&lt;BR /&gt;width : 375 * scaleFactor&lt;BR /&gt;height: 250 *scaleFactor&lt;/P&gt;&lt;P&gt;Column {&lt;BR /&gt;id: identifyColumn&lt;BR /&gt;anchors {&lt;BR /&gt;fill: parent&lt;BR /&gt;topMargin: 20 * scaleFactor&lt;BR /&gt;bottomMargin: 10 * scaleFactor&lt;BR /&gt;leftMargin:10 * scaleFactor&lt;BR /&gt;rightMargin: 10 * scaleFactor&lt;BR /&gt;}&lt;BR /&gt;spacing: 5 * scaleFactor&lt;BR /&gt;clip: true&lt;/P&gt;&lt;P&gt;Repeater {&lt;BR /&gt;model: &lt;STRONG&gt;fieldsModel&lt;/STRONG&gt;&lt;BR /&gt;clip: true&lt;BR /&gt;Row {&lt;BR /&gt;id: row&lt;BR /&gt;spacing: 2&lt;BR /&gt;Label {&lt;BR /&gt;id: nameLabel&lt;BR /&gt;text: name + ": "&lt;BR /&gt;font.bold:true&lt;BR /&gt;color: "black"&lt;BR /&gt;horizontalAlignment: Text.AlignLeft&lt;BR /&gt;font.pixelSize: 12 * scaleFactor&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;Label {&lt;BR /&gt;text: value&lt;BR /&gt;width:(345*scaleFactor)-nameLabel.width&lt;BR /&gt;color: "black"&lt;BR /&gt;horizontalAlignment: Text.left&lt;BR /&gt;font.pixelSize: 12 * scaleFactor&lt;BR /&gt;wrapMode: Text.WordWrap&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218380#M4757</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2022-10-03T18:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Feature disappears in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218446#M4758</link>
      <description>&lt;P&gt;I dont do QML but with&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function geoElementsCountFromResult(identifyLayerResult) &lt;/LI-CODE&gt;&lt;P&gt;Isnt "identifyLayerResult" a claimed variable name at the global scope?&amp;nbsp; Maybe refactor that to something more unique and see if the behavior persists?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 22:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218446#M4758</guid>
      <dc:creator>TroyFoster</dc:creator>
      <dc:date>2022-10-03T22:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature disappears in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218538#M4759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I edited the method and even removed the method completely, instead I used count (const count=result.geoElements.length) in a different way, but the same result still persists &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At the same time, during the tests, it finds the value of the randomly (e.g. feature above a road in a&amp;nbsp; in different place) found feature in the identify query and the feature is lost. Sometimes, the feature disappears before the attribute&amp;nbsp; are found, sometimes it works properly, in short, it is not stable.&lt;/P&gt;&lt;P&gt;Feature sometimes comes back after operations like zoom in/out after feature is lost.Can we come up with a solution to renew (using resetFeaturesVisible() , resetRenderer() metods or zooming in a little) the FeatureLayer to solve the problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is an important problem for us to see the details of the closed roads in traffic, in order to avoid traffic accidents.Can you help for solving problem ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1218538#M4759</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2022-10-05T11:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a different and  disappearing feature in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1220317#M4764</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/305812"&gt;@Gela&lt;/a&gt;&amp;nbsp;Now that there's more detail provided around this issue, is it something you'd be able to offer troubleshooting help with?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 11:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1220317#M4764</guid>
      <dc:creator>JesseCloutier</dc:creator>
      <dc:date>2022-10-10T11:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a different and  disappearing feature in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1222561#M4773</link>
      <description>&lt;P&gt;I wonder if the act of identifying the feature from the service populates additional attribute fields and values on which there is another condition for visibility? Are you still able to reproduce this issue if you set the ServiceFeatureTable to ManualCache mode and use the method populateFromService(QueryParameters parameters, bool clearCache, list&amp;lt;string&amp;gt; outFields), requesting all fields as outFields, typically as a "*". For more info see&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html#populateFromService-method" target="_blank"&gt;ServiceFeatureTable QML Type | ArcGIS Runtime API for Qt | ArcGIS Developers&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 17:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1222561#M4773</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-10-17T17:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a different and  disappearing feature in identify query</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1229014#M4787</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3014"&gt;@MichaelBranscomb&lt;/a&gt;&amp;nbsp;problem was solved.&amp;nbsp;I followed the method you suggested and the problem was solved.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The codes I use are as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feature Layers definition:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FeatureLayer {&lt;BR /&gt;id: roadsFeatureLayer&lt;/P&gt;&lt;P&gt;visible:false&lt;/P&gt;&lt;P&gt;ServiceFeatureTable {&lt;BR /&gt;id: roadsFeatureTable&lt;BR /&gt;url: "https://......./arcgis/rest/services/../.../MapServer/0"&lt;BR /&gt;featureRequestMode: Enums.FeatureRequestModeManualCache&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FeatureLayer {&lt;BR /&gt;id: closedRoadsFeatureLayer&lt;/P&gt;&lt;P&gt;visible:false&lt;/P&gt;&lt;P&gt;ServiceFeatureTable {&lt;BR /&gt;id: closedRoadsFeatureTable&lt;BR /&gt;url: "https://......./arcgis/rest/services/../.../MapServer/1"&lt;BR /&gt;featureRequestMode: Enums.FeatureRequestModeManualCache&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query parameter for feature layer tables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;QueryParameters {&lt;BR /&gt;id: params&lt;BR /&gt;whereClause: "1=1"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;İdentify Query Layers with mouse&amp;nbsp; clicked:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;onMouseClicked: {&lt;BR /&gt;const screenX = mouse.x;&lt;BR /&gt;const screenY = mouse.y;&lt;BR /&gt;const tolerance = 12;&lt;BR /&gt;const returnPopups = false;&lt;BR /&gt;const maxResults = 1;&lt;BR /&gt;mainViewObj.identifyLayersWithMaxResults(screenX, screenY, tolerance, returnPopups, maxResults);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query feature Layer Tables with enable /disable Images with click event&amp;nbsp; buttons:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Image {&lt;BR /&gt;id: roads_img&lt;BR /&gt;source: favorite ? "/Resources/ky_a.png" : "/Resources/ky_k.png"&lt;BR /&gt;enabled: roadsFeatureTable.loadStatus === Enums.LoadStatusLoaded&lt;BR /&gt;height: 45&lt;BR /&gt;width: 45&lt;BR /&gt;fillMode: Image.PreserveAspectFit&lt;/P&gt;&lt;P&gt;anchors {&lt;BR /&gt;top: mainViewObj.top&lt;BR /&gt;right:mainViewObj.right&lt;BR /&gt;topMargin: 10&lt;BR /&gt;rightMargin: 10&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;property bool favorite : false&lt;/P&gt;&lt;P&gt;MouseArea{&lt;BR /&gt;anchors.fill: parent&lt;BR /&gt;onClicked: {&lt;/P&gt;&lt;P&gt;roads_img.favorite = !roads_img.favorite&lt;/P&gt;&lt;P&gt;if(roads_img.favorite==true){&lt;/P&gt;&lt;P&gt;roadsFeatureLayer.visible=true&lt;BR /&gt;roadsFeatureTable.populateFromService(params, true, ["*"]);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;else&lt;BR /&gt;roadsFeatureLayer.visible=false&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image {&lt;BR /&gt;id: closedRoads_img&lt;BR /&gt;source: favorite ? "/Resources/cls_ky_a.png" : "/Resources/cls_ky_k.png"&lt;BR /&gt;enabled: closedRoadsFeatureTable.loadStatus === Enums.LoadStatusLoaded&lt;BR /&gt;height: 45&lt;BR /&gt;width: 45&lt;BR /&gt;fillMode: Image.PreserveAspectFit&lt;/P&gt;&lt;P&gt;anchors {&lt;BR /&gt;top: mainViewObj.top&lt;BR /&gt;right:mainViewObj.right&lt;BR /&gt;topMargin: 10&lt;BR /&gt;rightMargin: 10&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;property bool favorite : false&lt;/P&gt;&lt;P&gt;MouseArea{&lt;BR /&gt;anchors.fill: parent&lt;BR /&gt;onClicked: {&lt;/P&gt;&lt;P&gt;closedRoads_img.favorite = !closedRoads_img.favorite&lt;/P&gt;&lt;P&gt;if(closedRoads_img.favorite==true){&lt;/P&gt;&lt;P&gt;closedRoadsFeatureLayer.visible=true&lt;BR /&gt;closedRoadsFeatureTable.populateFromService(params, true, ["*"]);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;else&lt;BR /&gt;closedRoadsFeatureLayer.visible=false&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 11:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/finding-a-different-and-disappearing-feature-in/m-p/1229014#M4787</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2022-11-06T11:10:39Z</dc:date>
    </item>
  </channel>
</rss>

