<?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 TIGERweb Tracts_Blocks in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076271#M73758</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to query the block&amp;nbsp; service&amp;nbsp; &lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;&amp;nbsp;to get block information based on the input criteria - latitude and longitude. I am getting below error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Unable to load proxy.ashx?&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2?f=json" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2?f=json&lt;/A&gt; status: 500"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if anybody has resolved this issue, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chitra&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 14:05:48 GMT</pubDate>
    <dc:creator>ChitraKrishnan</dc:creator>
    <dc:date>2021-07-07T14:05:48Z</dc:date>
    <item>
      <title>TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076271#M73758</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to query the block&amp;nbsp; service&amp;nbsp; &lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;&amp;nbsp;to get block information based on the input criteria - latitude and longitude. I am getting below error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Unable to load proxy.ashx?&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2?f=json" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2?f=json&lt;/A&gt; status: 500"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if anybody has resolved this issue, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chitra&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076271#M73758</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-07T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076274#M73759</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499841"&gt;@ChitraKrishnan&lt;/a&gt;&amp;nbsp; So the error mentioned that it is attempting to use a proxy. Do you have a proxy setup on your web server at the address of this app? If so have you added the tigerweb.geo.census.gov url to your proxy.config?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:16:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076274#M73759</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-07-07T14:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076464#M73767</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;It worked after I added a self-signed ssl to my local web server. I left the proxy.config file unchanged. I am not sure how it bypassed the proxy.ashx file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to&amp;nbsp; query&amp;nbsp;&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;&amp;nbsp; using esri/request to get block info(and highlight that block with a color) whenever a particular latitude or longitude is passed as input. The return response looks very generic and does not include that particular block info. I tried below 2 sets of code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know what is incorrect in below code and appreciate if you could guide me with a sample code on how to query the url and render with colors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set1&lt;/P&gt;&lt;P&gt;queryBlocks: function (e) {&lt;/P&gt;&lt;P&gt;var pad = this.extent.getWidth() / this.width * 3;&lt;BR /&gt;var queryGeom = new Extent(e.mapPoint.x - pad, e.mapPoint.y - pad, e.mapPoint.x + pad, e.mapPoint.y + pad, this.spatialReference);&lt;/P&gt;&lt;P&gt;var q = new query();&lt;BR /&gt;q.outSpatialReference = { "wkid": 102100 };&lt;BR /&gt;q.returnGeometry = true;&lt;BR /&gt;q.outFields = ["BLOCK", "CENTLAT", "CENTLON"];&lt;BR /&gt;q.geometry = queryGeom;&lt;/P&gt;&lt;P&gt;var popupTemplate = new PopupTemplate({&lt;BR /&gt;title: "{NAME}",&lt;BR /&gt;fieldInfos: [&lt;BR /&gt;{ fieldName: "BLOCK", visible: true, label: "Block: " },&lt;BR /&gt;{ fieldName: "CENTLAT", visible: true, label: "Latitude: " },&lt;BR /&gt;{ fieldName: "CENTLON", visible: true, label: "Longitude: " }&lt;BR /&gt;]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;var qt = new QueryTask("&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;");&lt;/P&gt;&lt;P&gt;var def = qt.execute(q);&lt;BR /&gt;def.addCallback(function (result) {&lt;BR /&gt;return dojo.map(result.features, function (f) {&lt;BR /&gt;f.setInfoTemplate(popupTemplate);&lt;BR /&gt;return f;&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;this.infoWindow.setFeatures([def]);&lt;BR /&gt;this.infoWindow.show(e.screenPoint, this.getInfoWindowAnchor(e.screenPoint));&lt;/P&gt;&lt;P&gt;// queryFeatureLayer&lt;BR /&gt;const layerUrl = "&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;";&lt;BR /&gt;var layersRequest = esriRequest({&lt;BR /&gt;url: layerUrl,&lt;BR /&gt;content: {&lt;BR /&gt;f: "json",&lt;BR /&gt;where: "CENTLAT = +39.9570572", // Set by select element&lt;BR /&gt;spatialRelationship: "intersects", // Relationship operation to apply&lt;BR /&gt;geometry: this.extent, // Restricted to visible extent of the map&lt;BR /&gt;outFields: ["*"], // Attributes to return&lt;BR /&gt;returnGeometry: false&lt;BR /&gt;},&lt;BR /&gt;handleAs: "json",&lt;BR /&gt;// callbackParamName: "callback"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;layersRequest.then(&lt;BR /&gt;function (response) {&lt;BR /&gt;console.log("Success: ", response.layers);&lt;BR /&gt;}, function (error) {&lt;BR /&gt;console.log("Error: ", error.message);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Set 2:&lt;/P&gt;&lt;P&gt;queryBlocks: function (e) {&lt;/P&gt;&lt;P&gt;var pad = this.extent.getWidth() / this.width * 3;&lt;BR /&gt;var queryGeom = new Extent(e.mapPoint.x - pad, e.mapPoint.y - pad, e.mapPoint.x + pad, e.mapPoint.y + pad, this.spatialReference);&lt;/P&gt;&lt;P&gt;var q = new query();&lt;BR /&gt;q.outSpatialReference = { "wkid": 102100 };&lt;BR /&gt;q.returnGeometry = true;&lt;BR /&gt;q.outFields = ["BLOCK", "CENTLAT", "CENTLON"];&lt;BR /&gt;q.geometry = queryGeom;&lt;/P&gt;&lt;P&gt;var popupTemplate = new PopupTemplate({&lt;BR /&gt;title: "{NAME}",&lt;BR /&gt;fieldInfos: [&lt;BR /&gt;{ fieldName: "BLOCK", visible: true, label: "Block: " },&lt;BR /&gt;{ fieldName: "CENTLAT", visible: true, label: "Latitude: " },&lt;BR /&gt;{ fieldName: "CENTLON", visible: true, label: "Longitude: " }&lt;BR /&gt;]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;var qt = new QueryTask("&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;");&lt;/P&gt;&lt;P&gt;var def = qt.execute(q);&lt;BR /&gt;def.addCallback(function (result) {&lt;BR /&gt;return dojo.map(result.features, function (f) {&lt;BR /&gt;f.setInfoTemplate(popupTemplate);&lt;BR /&gt;return f;&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;this.infoWindow.setFeatures([def]);&lt;BR /&gt;this.infoWindow.show(e.screenPoint, this.getInfoWindowAnchor(e.screenPoint));&lt;/P&gt;&lt;P&gt;// queryFeatureLayer&lt;/P&gt;&lt;P&gt;const parcelLayer = new FeatureLayer("&lt;A href="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2" target="_blank"&gt;https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2&lt;/A&gt;");&lt;/P&gt;&lt;P&gt;const parcelQuery = {&lt;BR /&gt;where: "CENTLAT = +39.9570572", // Set by select element&lt;BR /&gt;outSpatialReference: { "wkid": 102100 },&lt;BR /&gt;spatialRelationship: "intersects", // Relationship operation to apply&lt;BR /&gt;geometry: this.extent, // Restricted to visible extent of the map&lt;BR /&gt;outFields: ["BLOCK"], // Attributes to return&lt;BR /&gt;returnGeometry: true&lt;BR /&gt;};&lt;BR /&gt;parcelLayer.queryFeatures(parcelQuery)&lt;BR /&gt;.then(function (results) {&lt;BR /&gt;console.log("Feature count: " + results.features.length)&lt;BR /&gt;})&lt;BR /&gt;.otherwise(function (error) {&lt;BR /&gt;console.log("Error: " + error.error);&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 20:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076464#M73767</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-07T20:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076733#M73774</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499841"&gt;@ChitraKrishnan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure why you are trying to execute the esriRequest... You have your QueryTask in Set1 that is returning the intersected track blocks based on the user click. So why attempt to query the same REST endpoint again using a esriRequest?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1076733#M73774</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-07-08T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077887#M73825</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Sorry for not giving much detail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to highlight each block with different colors based on the latitude and longitude array values from the database on map loading. We have only latitude and longitude values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Progress 1:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;So I started off with Progress 1 as given in my code sample below, where I was able to bring a popup on clicking each block.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Progress 2&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Later (Progress 2) I got the block information using the&amp;nbsp;queryFeatures by passing a singe latitude value - actually I wasn't getting the expected result&amp;nbsp; in&amp;nbsp;queryFeatures, that is why I tired esriRequest. But now I got the&amp;nbsp;queryFeatures working.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Progress 3&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Now my next thing is apply different colors to the blocks based on the latitude and longitude that I have, which I am struggling right now with. I tried using graphiclayer with polygon graphic, providing rings on top of the feature block layer but no good. Can you please guide me how to achieve this? I have attached my code sample here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 16:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077887#M73825</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-12T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077950#M73826</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499841"&gt;@ChitraKrishnan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when the map loads you have an array of lats and longs that you want to query and display the intersecting census blocks with different colors. It also looks like you want the blocks to have a popup template applied to then so when the user clicks them the popup will appear? Can you provide some example lat long array values?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 18:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077950#M73826</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-07-12T18:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077970#M73827</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes that is my requirement. Also I need to set the intensity of the colors based on the count of lat and long values for each block.&amp;nbsp; like given below:&lt;/P&gt;&lt;P&gt;Block 2019 - Identified 23 lat and long values from DB - darker the color&lt;/P&gt;&lt;P&gt;Block 2015 - identified 5 lat and long vlaues from DB - lesser the intensity of the color&lt;/P&gt;&lt;P&gt;Right&amp;nbsp; now I am trying with one latitude value to see if it works. I have given below code sample.&lt;/P&gt;&lt;P&gt;const graphicsLayer = new GraphicsLayer();&lt;BR /&gt;this.map.addLayer(graphicsLayer);&lt;/P&gt;&lt;P&gt;//I got below rings values by querying "CENTLAT = +39.9593239" using the queryBlockData() I posted in //my previous sample code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;const polygon = {&lt;BR /&gt;type: "polygon",&lt;BR /&gt;rings: [&lt;BR /&gt;[-9239716.9977, 4860125.7711],&lt;BR /&gt;[-9239644.5287, 4860136.6635000035],&lt;BR /&gt;[-9239631.8383, 4860051.703000002],&lt;BR /&gt;[-9239615.697, 4859943.796899997],&lt;BR /&gt;[-9239711.877, 4859929.564400002],&lt;BR /&gt;[-9239741.0427, 4860121.849799998],&lt;BR /&gt;[-9239716.9977, 4860125.7711]&lt;BR /&gt;],&lt;BR /&gt;spatialReference: { wkid: 102100 }&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const polygonGraphic = new Graphic({&lt;BR /&gt;geometry: polygon,&lt;BR /&gt;symbol: {&lt;BR /&gt;type: "simple-fill",&lt;BR /&gt;color: [51, 51, 204, 0.4],&lt;BR /&gt;style: "solid",&lt;BR /&gt;outline: {&lt;BR /&gt;color: "white",&lt;BR /&gt;width: 1&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;visible: true&lt;BR /&gt;});&lt;BR /&gt;polygonGraphic.visible = true;&lt;BR /&gt;graphicsLayer.add(polygonGraphic);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 18:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077970#M73827</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-12T18:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077981#M73829</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am clicking inside "S Wall St" (blue outlined block) in the screenshot below. I am getting two different block#s&amp;nbsp; 2014 and 2015.&lt;/P&gt;&lt;P&gt;was my attached code sample correct in bringing the block details?&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-center" image-alt="screenshot.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18266i2A7EF7131F7A3A19/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot.png" alt="screenshot.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;Chitra&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 19:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1077981#M73829</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-12T19:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1078233#M73836</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499841"&gt;@ChitraKrishnan&lt;/a&gt;&amp;nbsp; So this should get you going on the lat and lon array and different colors for blocks. The whole part on color intensity is quite a bit of work to figure that out.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
  &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;

  &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;
  &amp;lt;title&amp;gt;Census Blocks&amp;lt;/title&amp;gt;
  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.37/dijit/themes/tundra/tundra.css"&amp;gt;
  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.37/esri/css/esri.css"&amp;gt;
  &amp;lt;style&amp;gt;
    html,
    body,
    #mapDiv {
      padding: 0;
      margin: 0;
      height: 100%;
    }
  &amp;lt;/style&amp;gt;
  &amp;lt;script src="https://js.arcgis.com/3.37/"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;script&amp;gt;
    var map, GL, pntsArr;
    require([
      "esri/map", "esri/tasks/QueryTask", "esri/SpatialReference",
      "esri/tasks/query", "esri/geometry/Point", "esri/dijit/PopupTemplate",
      "esri/layers/GraphicsLayer",
      "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/renderers/SimpleRenderer",
      "esri/Color", "dojo/domReady!"
    ], function (
      Map, QueryTask, SpatialReference,
      Query, Point, PopupTemplate,
      GraphicsLayer, 
      SimpleLineSymbol, SimpleFillSymbol, SimpleRenderer,
      Color
    ) {
      
      map = new Map("mapDiv", {
        basemap: "streets",
        center: [-83.0014423, 39.9593239],
        zoom: 14,
        slider: false
      });

      var popupTemplate = new PopupTemplate({
          title: "{NAME}",
          fieldInfos: [{
              fieldName: "BLOCK",
              visible: true,
              label: "Block: "
            },
            {
              fieldName: "CENTLAT",
              visible: true,
              label: "Latitude: "
            },
            {
              fieldName: "CENTLON",
              visible: true,
              label: "Longitude: "
            }
          ]
        });

      GL = new GraphicsLayer({id: 'mygl', infoTemplate: popupTemplate});
      map.addLayer(GL);

      var arrayFromDatabase = [[-83.0014423,39.9593239],[-83.0006330,39.9597960],[-83.0019028,39.9617077]];
      queryBlocks(arrayFromDatabase);

      function queryBlocks(dbArr) {
        var q = new Query();
        q.outSpatialReference = new SpatialReference(102100);
        q.returnGeometry = true;
        q.outFields = ["*"];
        var qt = new QueryTask("https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2");

        dbArr.map(function (pntData){
          var pnt = new Point(pntData);
          q.geometry = pnt;
          qt.execute(q, function (result) {
            result.features.map(function (f) {
              var randomColor = '#' + Math.floor(Math.random() * 16777215).toString(16);
              var color = new Color(randomColor);
              color.a = 0.5;
              var gra = f.clone();
              console.info(gra.attributes);
              gra.setSymbol(
                new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
                  new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0,0,0]), 1),
                  color
                )
              );
              GL.add(gra);
            });
          });

        });
      }
    });
  &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
  &amp;lt;div id="mapDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 13:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1078233#M73836</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-07-13T13:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1078327#M73843</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Robert! I will try this.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 16:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1078327#M73843</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-13T16:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1078445#M73849</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works!!!!! that is cool!!!! Thank you very much Robert.&lt;/P&gt;&lt;P&gt;I will try to figure out the color intensity part. If not, will come back for ideas.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Chitra&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 19:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1078445#M73849</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-13T19:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1079647#M73908</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;The outline color is not setting to black in below code. We are using js.arcgis.com/3.14. Do I have to do anything different for this version?&lt;/P&gt;&lt;P&gt;gra.setSymbol(&lt;BR /&gt;new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,&lt;BR /&gt;new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0, 0, 0]), 2),&lt;BR /&gt;color&lt;BR /&gt;)&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 13:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1079647#M73908</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-16T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1079692#M73912</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499841"&gt;@ChitraKrishnan&lt;/a&gt;&amp;nbsp; 3.14 does not have the clone method on the Graphic class so you have to make some code changes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
  &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;

  &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;
  &amp;lt;title&amp;gt;Census Blocks&amp;lt;/title&amp;gt;
  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.14/dijit/themes/tundra/tundra.css"&amp;gt;
  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.14/esri/css/esri.css"&amp;gt;
  &amp;lt;style&amp;gt;
    html,
    body,
    #mapDiv {
      padding: 0;
      margin: 0;
      height: 100%;
    }
  &amp;lt;/style&amp;gt;
  &amp;lt;script src="https://js.arcgis.com/3.14/"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;script&amp;gt;
    var map, GL, pntsArr;
    require([
      "esri/map", "esri/tasks/QueryTask", "esri/SpatialReference",
      "esri/tasks/query", "esri/geometry/Point", "esri/dijit/PopupTemplate",
      "esri/layers/GraphicsLayer", "esri/graphic",
      "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/renderers/SimpleRenderer",
      "esri/Color", "dojo/domReady!"
    ], function (
      Map, QueryTask, SpatialReference,
      Query, Point, PopupTemplate,
      GraphicsLayer, Graphic,
      SimpleLineSymbol, SimpleFillSymbol, SimpleRenderer,
      Color
    ) {
      
      map = new Map("mapDiv", {
        basemap: "streets",
        center: [-83.0014423, 39.9593239],
        zoom: 14,
        slider: false
      });

      var popupTemplate = new PopupTemplate({
          title: "{NAME}",
          fieldInfos: [{
              fieldName: "BLOCK",
              visible: true,
              label: "Block: "
            },
            {
              fieldName: "CENTLAT",
              visible: true,
              label: "Latitude: "
            },
            {
              fieldName: "CENTLON",
              visible: true,
              label: "Longitude: "
            }
          ]
        });

      GL = new GraphicsLayer({id: 'mygl', infoTemplate: popupTemplate});
      map.addLayer(GL);

      var arrayFromDatabase = [[-83.0014423,39.9593239],[-83.0006330,39.9597960],[-83.0019028,39.9617077]];
      queryBlocks(arrayFromDatabase);

      function queryBlocks(dbArr) {
        var q = new Query();
        q.outSpatialReference = new SpatialReference(102100);
        q.returnGeometry = true;
        q.outFields = ["*"];
        var qt = new QueryTask("https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2");

        dbArr.map(function (pntData){
          var pnt = new Point(pntData);
          q.geometry = pnt;
          qt.execute(q, function (result) {
            result.features.map(function (f) {
              var randomColor = '#' + Math.floor(Math.random() * 16777215).toString(16);
              var color = new Color(randomColor);
              color.a = 0.5;
              var gra = new Graphic(f.toJson());
              // console.info(gra.attributes);
              gra.setSymbol(
                new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
                  new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0,0,0]), 2),
                  color
                )
              );
              GL.add(gra);
            });
          });

        });
      }
    });
  &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
  &amp;lt;div id="mapDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1079692#M73912</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-07-16T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: TIGERweb Tracts_Blocks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1079880#M73917</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp; Thank you very much. I will try this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 20:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tigerweb-tracts-blocks/m-p/1079880#M73917</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-07-16T20:51:17Z</dc:date>
    </item>
  </channel>
</rss>

