<?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 How to get geometry object when I inquiry with Point of Sketch Tool in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243501#M79717</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The version of arcgis javascript I'm using now is 4.24.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently implementing the highlight processing of the selected object on the layer using the tool of the Sketch Object, but if I select polygon, square, or circle, the geometry object is inquired and returned, but if you select the object on the layer using the point tool, the geometry object is not returned. I'll write my source, so if there's anything wrong, please correct it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the source below, if I select with point tool, I get zero in the red letter of the bold part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please, help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let allLayerUrl = '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer&lt;/A&gt;';&lt;BR /&gt;let boreholeLayerUrl = '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/0&lt;/A&gt;';&lt;BR /&gt;let projectLayerUrl = '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/1" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/1&lt;/A&gt;';&lt;BR /&gt;let projectPointLayerUrl= '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/2" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/2&lt;/A&gt;';&lt;/P&gt;&lt;P&gt;const boreholeLayer = new FeatureLayer({&lt;BR /&gt;url: boreholeLayerUrl,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;const projectLayer = new FeatureLayer({&lt;BR /&gt;url: projectLayerUrl,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;const projectPointLayer = new FeatureLayer({&lt;BR /&gt;url: projectPointLayerUrl,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisMap = new WebMap({&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: "a706f1759f9944ebb3888bdecf3bc6f7"&lt;BR /&gt;},&lt;BR /&gt;layers:[projectPointLayer, projectLayer, boreholeLayer]&amp;nbsp;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisView = new MapView({&lt;BR /&gt;container: "viewDiv",&amp;nbsp;&lt;BR /&gt;map: gisMap,&amp;nbsp;&lt;BR /&gt;extent: {&amp;nbsp;&lt;BR /&gt;xmin: 1.4143672753287151E7,&lt;BR /&gt;ymin: 4523114.166998532,&lt;BR /&gt;xmax: 1.4144828455598556E7,&lt;BR /&gt;ymax: 4523429.5509626325,&lt;BR /&gt;spatialReference: 102100&lt;BR /&gt;},&lt;BR /&gt;zoom: 17&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;graphicsLayerSketch = new GraphicsLayer();&lt;BR /&gt;gisMap.add(graphicsLayerSketch);&lt;BR /&gt;&lt;BR /&gt;let removeLayerIds = ['WebTiled_5481', 'WebTiled_5071', 'WebTiled_7927', 'WebTiled_509'];&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;gisMap.loadAll().then(async () =&amp;gt; {&lt;BR /&gt;$.each(removeLayerIds, function(i, v){&lt;BR /&gt;let removeLayer = gisMap.findLayerById(v);&lt;BR /&gt;gisMap.remove(removeLayer);&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;let dllLayer = gisMap.allLayers.find(function(layer){&lt;BR /&gt;return layer.title === "GEOIS - TB DLL LC";&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;let prjctLayer = gisMap.allLayers.find(function(layer){&lt;BR /&gt;return layer.title === "GEOIS - TB PRJCT LC";&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;let prjctPointLayer = gisMap.allLayers.find(function(layer){&lt;BR /&gt;return layer.title === "GEOIS - TB PRJCT LC POINT";&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisMap.reorder(dllLayer, 7);&lt;BR /&gt;gisMap.reorder(prjctLayer, 6);&lt;BR /&gt;gisMap.reorder(prjctPointLayer, 5);&lt;BR /&gt;&lt;BR /&gt;if(isFindGis == 'Y'){&lt;BR /&gt;moveToSelectedArea();&lt;BR /&gt;}&lt;BR /&gt;})&lt;BR /&gt;.then(function() {&lt;BR /&gt;return gisMap.basemap.load();&lt;BR /&gt;})&lt;BR /&gt;.then(function() {&lt;BR /&gt;allLayers = gisMap.allLayers;&lt;BR /&gt;const promises = allLayers.map(function(layer) {&lt;BR /&gt;return layer.load();&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;setLayerVisible(true);&lt;BR /&gt;&lt;BR /&gt;return Promise.all(promises.toArray());&lt;BR /&gt;})&lt;BR /&gt;.then(function(layers) {})&lt;BR /&gt;.catch(function(error) {});&lt;BR /&gt;&lt;BR /&gt;const sketch = new Sketch({&lt;BR /&gt;layer: graphicsLayerSketch,&lt;BR /&gt;view: gisView,&lt;BR /&gt;creationMode: "update",&lt;BR /&gt;updateOnGraphicClick: true,&lt;BR /&gt;visibleElements: {&lt;BR /&gt;createTools: {&lt;BR /&gt;point: true,&lt;BR /&gt;polyline: false&lt;BR /&gt;},&lt;BR /&gt;selectionTools:{&lt;BR /&gt;"lasso-selection": false,&lt;BR /&gt;"rectangle-selection":false,&lt;BR /&gt;},&lt;BR /&gt;settingsMenu: false,&lt;BR /&gt;undoRedoMenu: true&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisView.ui.add(sketch, "top-right");&lt;BR /&gt;&lt;BR /&gt;sketch.on("update", (event) =&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;unitGraphic = event.graphics[0];&lt;/P&gt;&lt;P&gt;if (event.state === "start") {&lt;BR /&gt;queryFeaturelayer(unitGraphic.geometry);&lt;BR /&gt;}&lt;BR /&gt;if (event.state === "complete"){&lt;BR /&gt;graphicsLayerSketch.remove(unitGraphic);&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (event.toolEventInfo &amp;amp;&amp;amp; (event.toolEventInfo.type === "scale-stop" || event.toolEventInfo.type === "reshape-stop" || event.toolEventInfo.type === "move-stop")) {&lt;BR /&gt;queryFeaturelayer(unitGraphic.geometry);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;const parcelLayer = new FeatureLayer({&lt;BR /&gt;url: boreholeLayerUrl,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;function queryFeaturelayer(geometry) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;let type = geometry.type;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const parcelQuery = {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;spatialRelationship: "intersects",&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;geometry: geometry,&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;outFields: ['*'],&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;returnGeometry: true&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parcelLayer.queryFeatures(parcelQuery).then((results) =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;console.log("Feature count: " + results.features.length)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;displayResults(results);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}).catch((error) =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;console.log(error);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;function displayResults(results) {&lt;BR /&gt;results.features.map((feature) =&amp;gt; {&lt;BR /&gt;feature.symbol = highlightSymbol;&lt;BR /&gt;&lt;BR /&gt;addedFeatureMap.set(parseInt(feature.attributes.DLL_SN), feature);&lt;BR /&gt;&lt;BR /&gt;return feature;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;gisView.graphics.addMany(results.features);&lt;BR /&gt;&lt;BR /&gt;if(results.features.length &amp;gt; 0){&lt;BR /&gt;processSelectedArea(results.features);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 01:09:05 GMT</pubDate>
    <dc:creator>yangheekim</dc:creator>
    <dc:date>2022-12-23T01:09:05Z</dc:date>
    <item>
      <title>How to get geometry object when I inquiry with Point of Sketch Tool</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243501#M79717</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The version of arcgis javascript I'm using now is 4.24.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently implementing the highlight processing of the selected object on the layer using the tool of the Sketch Object, but if I select polygon, square, or circle, the geometry object is inquired and returned, but if you select the object on the layer using the point tool, the geometry object is not returned. I'll write my source, so if there's anything wrong, please correct it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the source below, if I select with point tool, I get zero in the red letter of the bold part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please, help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let allLayerUrl = '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer&lt;/A&gt;';&lt;BR /&gt;let boreholeLayerUrl = '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/0&lt;/A&gt;';&lt;BR /&gt;let projectLayerUrl = '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/1" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/1&lt;/A&gt;';&lt;BR /&gt;let projectPointLayerUrl= '&lt;A href="https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/2" target="_blank" rel="noopener"&gt;https://services-ap1.arcgis.com/Hs0yGgyc5IFRgIXc/arcgis/rest/services/GEOIS/FeatureServer/2&lt;/A&gt;';&lt;/P&gt;&lt;P&gt;const boreholeLayer = new FeatureLayer({&lt;BR /&gt;url: boreholeLayerUrl,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;const projectLayer = new FeatureLayer({&lt;BR /&gt;url: projectLayerUrl,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;const projectPointLayer = new FeatureLayer({&lt;BR /&gt;url: projectPointLayerUrl,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisMap = new WebMap({&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: "a706f1759f9944ebb3888bdecf3bc6f7"&lt;BR /&gt;},&lt;BR /&gt;layers:[projectPointLayer, projectLayer, boreholeLayer]&amp;nbsp;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisView = new MapView({&lt;BR /&gt;container: "viewDiv",&amp;nbsp;&lt;BR /&gt;map: gisMap,&amp;nbsp;&lt;BR /&gt;extent: {&amp;nbsp;&lt;BR /&gt;xmin: 1.4143672753287151E7,&lt;BR /&gt;ymin: 4523114.166998532,&lt;BR /&gt;xmax: 1.4144828455598556E7,&lt;BR /&gt;ymax: 4523429.5509626325,&lt;BR /&gt;spatialReference: 102100&lt;BR /&gt;},&lt;BR /&gt;zoom: 17&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;graphicsLayerSketch = new GraphicsLayer();&lt;BR /&gt;gisMap.add(graphicsLayerSketch);&lt;BR /&gt;&lt;BR /&gt;let removeLayerIds = ['WebTiled_5481', 'WebTiled_5071', 'WebTiled_7927', 'WebTiled_509'];&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;gisMap.loadAll().then(async () =&amp;gt; {&lt;BR /&gt;$.each(removeLayerIds, function(i, v){&lt;BR /&gt;let removeLayer = gisMap.findLayerById(v);&lt;BR /&gt;gisMap.remove(removeLayer);&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;let dllLayer = gisMap.allLayers.find(function(layer){&lt;BR /&gt;return layer.title === "GEOIS - TB DLL LC";&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;let prjctLayer = gisMap.allLayers.find(function(layer){&lt;BR /&gt;return layer.title === "GEOIS - TB PRJCT LC";&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;let prjctPointLayer = gisMap.allLayers.find(function(layer){&lt;BR /&gt;return layer.title === "GEOIS - TB PRJCT LC POINT";&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisMap.reorder(dllLayer, 7);&lt;BR /&gt;gisMap.reorder(prjctLayer, 6);&lt;BR /&gt;gisMap.reorder(prjctPointLayer, 5);&lt;BR /&gt;&lt;BR /&gt;if(isFindGis == 'Y'){&lt;BR /&gt;moveToSelectedArea();&lt;BR /&gt;}&lt;BR /&gt;})&lt;BR /&gt;.then(function() {&lt;BR /&gt;return gisMap.basemap.load();&lt;BR /&gt;})&lt;BR /&gt;.then(function() {&lt;BR /&gt;allLayers = gisMap.allLayers;&lt;BR /&gt;const promises = allLayers.map(function(layer) {&lt;BR /&gt;return layer.load();&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;setLayerVisible(true);&lt;BR /&gt;&lt;BR /&gt;return Promise.all(promises.toArray());&lt;BR /&gt;})&lt;BR /&gt;.then(function(layers) {})&lt;BR /&gt;.catch(function(error) {});&lt;BR /&gt;&lt;BR /&gt;const sketch = new Sketch({&lt;BR /&gt;layer: graphicsLayerSketch,&lt;BR /&gt;view: gisView,&lt;BR /&gt;creationMode: "update",&lt;BR /&gt;updateOnGraphicClick: true,&lt;BR /&gt;visibleElements: {&lt;BR /&gt;createTools: {&lt;BR /&gt;point: true,&lt;BR /&gt;polyline: false&lt;BR /&gt;},&lt;BR /&gt;selectionTools:{&lt;BR /&gt;"lasso-selection": false,&lt;BR /&gt;"rectangle-selection":false,&lt;BR /&gt;},&lt;BR /&gt;settingsMenu: false,&lt;BR /&gt;undoRedoMenu: true&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;gisView.ui.add(sketch, "top-right");&lt;BR /&gt;&lt;BR /&gt;sketch.on("update", (event) =&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;unitGraphic = event.graphics[0];&lt;/P&gt;&lt;P&gt;if (event.state === "start") {&lt;BR /&gt;queryFeaturelayer(unitGraphic.geometry);&lt;BR /&gt;}&lt;BR /&gt;if (event.state === "complete"){&lt;BR /&gt;graphicsLayerSketch.remove(unitGraphic);&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (event.toolEventInfo &amp;amp;&amp;amp; (event.toolEventInfo.type === "scale-stop" || event.toolEventInfo.type === "reshape-stop" || event.toolEventInfo.type === "move-stop")) {&lt;BR /&gt;queryFeaturelayer(unitGraphic.geometry);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;const parcelLayer = new FeatureLayer({&lt;BR /&gt;url: boreholeLayerUrl,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;function queryFeaturelayer(geometry) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;let type = geometry.type;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const parcelQuery = {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;spatialRelationship: "intersects",&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;geometry: geometry,&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;outFields: ['*'],&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;returnGeometry: true&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parcelLayer.queryFeatures(parcelQuery).then((results) =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;console.log("Feature count: " + results.features.length)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;displayResults(results);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}).catch((error) =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;console.log(error);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;function displayResults(results) {&lt;BR /&gt;results.features.map((feature) =&amp;gt; {&lt;BR /&gt;feature.symbol = highlightSymbol;&lt;BR /&gt;&lt;BR /&gt;addedFeatureMap.set(parseInt(feature.attributes.DLL_SN), feature);&lt;BR /&gt;&lt;BR /&gt;return feature;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;gisView.graphics.addMany(results.features);&lt;BR /&gt;&lt;BR /&gt;if(results.features.length &amp;gt; 0){&lt;BR /&gt;processSelectedArea(results.features);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 01:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243501#M79717</guid>
      <dc:creator>yangheekim</dc:creator>
      <dc:date>2022-12-23T01:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get geometry object when I inquiry with Point of Sketch Tool</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243511#M79718</link>
      <description>&lt;P&gt;If that was going to work, you'd have to click exactly on the very same coordinates as the point feature, but that's virtually impossible.&amp;nbsp; Therefore, for point queries, you should use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;MapView.hitTest&lt;/A&gt; instead - as long as you click on the point's symbology it should work.&amp;nbsp; Maybe try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function queryFeaturelayer(geometry) {
	if (geometry.type == "point") {
		gisView.hitTest(gisView.toScreen(geometry), {include:parcelLayer}).then(function(hitTestResult) {
			var graphics = [];

			hitTestResult.results.forEach(function(result) {
				graphics.push(result.graphic);
			});

			console.log("Feature count: " + graphics.length);
			displayResults({features:graphics});
		});
	} else {
		const parcelQuery = {
			spatialRelationship: "intersects", 
			geometry: geometry, 
			outFields: ['*'], 
			returnGeometry: true
		};

		parcelLayer.queryFeatures(parcelQuery).then((results) =&amp;gt; {
			console.log("Feature count: " + results.features.length);
			displayResults(results);
		}).catch((error) =&amp;gt; {
			console.log(error);
		});
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 16:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243511#M79718</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-12-23T16:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get geometry object when I inquiry with Point of Sketch Tool</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243513#M79719</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your interest in my question and for making a sample yourself. But it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 05:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-geometry-object-when-i-inquiry-with/m-p/1243513#M79719</guid>
      <dc:creator>yangheekim</dc:creator>
      <dc:date>2022-12-23T05:04:42Z</dc:date>
    </item>
  </channel>
</rss>

