<?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: show popup dynamically on click of graphic in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1021387#M3777</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/204423"&gt;@ErwinSoekianto&lt;/a&gt;&amp;nbsp; can you help me in this task. I m still stucked in it. I have to look for graphic attribute to identify on a particular overlay on mouse click.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 06:17:16 GMT</pubDate>
    <dc:creator>rsharma</dc:creator>
    <dc:date>2021-01-29T06:17:16Z</dc:date>
    <item>
      <title>show popup dynamically on click of graphic</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1013893#M3732</link>
      <description>&lt;P&gt;hi i want to show a small popup with dynamic data on several graphics of map onclick.&lt;/P&gt;&lt;P&gt;how can i achieve this.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 12:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1013893#M3732</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2021-01-05T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: show popup dynamically on click of graphic</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1014839#M3733</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/222605"&gt;@rsharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you looked at this sample from Runtime Qt,&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/latest/qml/sample-code/show-a-popup/" target="_blank"&gt;https://developers.arcgis.com/qt/latest/qml/sample-code/show-a-popup/&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 20:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1014839#M3733</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2021-01-07T20:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: show popup dynamically on click of graphic</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1020383#M3773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/204423"&gt;@ErwinSoekianto&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to show username like the picture below it do not come from any feature layer but i have &lt;/P&gt;&lt;P&gt;to get it from private server to show, here on click&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-01-27 at 11.23.22 AM.png" style="width: 151px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4645i2E13864704F60249/image-dimensions/151x110?v=v2" width="151" height="110" role="button" title="Screenshot 2021-01-27 at 11.23.22 AM.png" alt="Screenshot 2021-01-27 at 11.23.22 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so i tried like this and trying to get graphic- attribute or geometry, but it always come undefined, as i have to identify the graphic clicked and then get the username .&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; // *** declare mapview***//
    MapView {
        id:mapView
        property real initialMapRotation: 0
        Component.onCompleted: {
                mmpk.load();
            }
        anchors {
            left: parent.left
            right: parent.right
            top: parent.top
            bottom: parent.bottom
        }

        
        GraphicsOverlay{
            id:hunterfreindPathOverlay
        }
        //! [show callout qml api snippet]
        // initialize Callout
        calloutData {
            location: calloutLocation
            detail: "LINZ USER"
        }

        Callout {
            id: callout
            calloutData: parent.calloutData
            leaderPosition: leaderPositionEnum.Automatic
        }
        //! [show callout qml api snippet]

        // display callout on mouseClicked
        onMouseClicked: {
            const tolerance = 22;
            const returnPopupsOnly = false;
            const maximumResults = 1;

            if (callout.calloutVisible)
                callout.dismiss()
            else
            {             
       mapView.identifyGraphicsOverlayWithMaxResults(hunterfreindPathOverlay, mouse.x, mouse.y, tolerance, returnPopupsOnly, maximumResults);
                calloutLocation = mouse.mapPoint;
            }
        }
        // Signal handler for identify graphics overlay
            onIdentifyGraphicsOverlayStatusChanged: {
                if (identifyGraphicsOverlayStatus === Enums.TaskStatusCompleted) {
                    if (identifyGraphicsOverlayResult.graphics.length &amp;gt; 0) {
console.log("===&amp;gt;"+identifyGraphicsOverlayResult.graphics.geometry);
console.log("===&amp;gt;"+identifyGraphicsOverlayResult.graphics.attribute);
                        callout.accessoryButtonHidden = true;
                        callout.showCallout();
                    }
                } else if (identifyGraphicsOverlayStatus === Enums.TaskStatusErrored) {
                    console.log("error");
                }
            }
                //! [identify graphics api snippet]
    }//End Mapview&lt;/LI-CODE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So i tried to add attribute like this and trying to fetch it, but unsuccessful&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     // *** Create  graphic for boundaries and markers ***//
    function createGraphic(geometry, symbol) {
        var graphic = ArcGISRuntimeEnvironment.createObject("Graphic");
        graphic.geometry = geometry;
        graphic.symbol = symbol;
        graphic.attributes.insertAttribute("username", "LINZs");

        return graphic;
    }//end createGraphic&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 10:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1020383#M3773</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2021-01-28T10:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: show popup dynamically on click of graphic</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1021387#M3777</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/204423"&gt;@ErwinSoekianto&lt;/a&gt;&amp;nbsp; can you help me in this task. I m still stucked in it. I have to look for graphic attribute to identify on a particular overlay on mouse click.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 06:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/show-popup-dynamically-on-click-of-graphic/m-p/1021387#M3777</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2021-01-29T06:17:16Z</dc:date>
    </item>
  </channel>
</rss>

