<?xml version="1.0" encoding="UTF-8" standalone="no"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>ArcGIS API for JavaScript Samples</title>
  <link href="https://www.arcgis.com" rel="alternate"/>
  <subtitle>New samples added to the ArcGIS API for JavaScript.</subtitle>
  <entry>
    <title>Find nearest features using Arcade expressions in a popup</title>
    <link href="https://www.arcgis.com/home/item.html?id=94ef9059ed5c4206a5b8a3f0bbdfaf99" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>94ef9059ed5c4206a5b8a3f0bbdfaf99</id>
    <updated>2021-11-12T19:29:25Z</updated>
    <published>2018-11-30T22:24:18Z</published>
    <summary type="html">This sample demonstrates how to access other features from a layer using the FeatureSet capabilities available in &lt;a href='https://developers.arcgis.com/arcade/guide/release-notes/'&gt;Arcade expressions&lt;/a&gt;. When the user clicks a hotel feature in this sample, the Arcade expression executes and finds all restaurants within 500 meters of the hotel. The hotel's distance to each restaurant is then measured. Information for the closest restaurant is then displayed in the hotel's popup.</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2018-11-30T22:24:18Z</dc:date>
  </entry>
  <entry>
    <title>ReportPlayer - Geoenrichment</title>
    <link href="https://www.arcgis.com/home/item.html?id=6bd67f78c9e445b7a26598cd8b58b1e5" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>6bd67f78c9e445b7a26598cd8b58b1e5</id>
    <updated>2021-11-12T19:27:50Z</updated>
    <published>2018-06-19T19:53:09Z</published>
    <summary type="html">The ReportPlayer widget runs infographic report templates for a provided analysis area. This sample allows users to click on one of 4 locations and show one of the Esri provided Infographics for the location. The&lt;a href='https://developers.arcgis.com/javascript/3/jsapi/reportplayer-amd.html' target='_blank'&gt;ReportPlayer&lt;/a&gt;uses the GeoEnrichment service to request and create the Infographic.&lt;a href='https://developers.arcgis.com/rest/geoenrichment/api-reference/geoenrichment-service-overview.htm' target='_blank'&gt;GeoEnrichment&lt;/a&gt;is a subscription based service available through ArcGIS Online. Log-in credentials are always required when executing a GeoEnrichment task.&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div&gt;&lt;img alt='Reportplayer sample' src='../jshelp/images/ReportPlayerSample.gif' /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;For demo purposes, this sample requires a user to have ArcGIS Online credentials with access to GeoEnrichment to run successfully.&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2018-06-19T19:53:09Z</dc:date>
  </entry>
  <entry>
    <title>Relationship Renderer</title>
    <link href="https://www.arcgis.com/home/item.html?id=bec793c0a56f42338502108499132275" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>bec793c0a56f42338502108499132275</id>
    <updated>2021-11-12T19:30:29Z</updated>
    <published>2018-06-18T21:12:34Z</published>
    <summary type="html">&lt;p&gt;This sample demonstrates how to generate a relationship renderer to explore the potential relationship between two numeric attributes. This is done by calling the  &lt;a href='../jsapi/esri.renderers.smartmapping-amd.html#createrelationshiprenderer'&gt;smartMapping.createRelationshipRenderer()&lt;/a&gt; method. This sample also demonstrates how you can change the labels, rotation, and colors of the associated legend depending on the information you're trying to convey.&lt;/p&gt;&lt;p&gt;This visualization is commonly known as a &lt;a href='http://www.joshuastevens.net/cartography/make-a-bivariate-choropleth-map/'&gt;bivariate choropleth&lt;/a&gt; visualization, which classifies each variable in either 2, 3, or 4 classes along separate color ramps. One of those ramps is rotated 90 degrees and overlaid on the other to create a 2x2, 3x3, or 4x4 square grid. The x-axis indicates the range of values for one variable, and the y-axis indicates the range for the second variable. The squares running diagonal from the lower left corner to the upper right corner indicate features where the two variables may be related or in agreement with one another.&lt;/p&gt;&lt;p&gt;The lower right and upper left corners indicate features where one field has high values and the other field low values and vice versa.&lt;/p&gt;&lt;p&gt;Keep in mind that even if you observe a positive relationship between the two variables of interest, it doesn't mean they are statistically correlated. It also doesn't imply the presence of one variable influences the other. Therefore, this renderer should be used judiciously with some prior knowledge that two variables may likely be related.&lt;/p&gt;</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2018-06-18T21:12:34Z</dc:date>
  </entry>
  <entry>
    <title>Client-side projection</title>
    <link href="https://www.arcgis.com/home/item.html?id=02b6530d48fb4370ae12b11951bf35f0" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>02b6530d48fb4370ae12b11951bf35f0</id>
    <updated>2021-11-12T19:26:26Z</updated>
    <published>2018-04-11T18:37:07Z</published>
    <summary type="html">This sample shows how to &lt;a href='https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.projection-amd.html#project'&gt;project&lt;/a&gt; features to the &lt;a href='https://developers.arcgis.com/javascript/3/jsapi/spatialreference-amd.html'&gt;spatialReference&lt;/a&gt; of the map on the client side.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;a href='https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson'&gt;all-week-earthquakes geojson&lt;/a&gt; is loaded from the USGS site. A point with WGS84 spatial reference is created from each geoJSON feature representing earthquake location. Then each point is projected from WGS84 to Winkel III spatial reference. The final geometries are added to the map as graphics.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

The sample also displays the position of the user's cursor as it moves across the map using the 
&lt;a href='https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.coordinateformatter-amd.html'&gt;coordinateformatter's&lt;/a&gt;
&lt;a href='https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.coordinateformatter-amd.html#tolatitudelongitude'&gt;toLatitudeLongitude()&lt;/a&gt;
method.</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2018-04-11T18:37:07Z</dc:date>
  </entry>
  <entry>
    <title>Display more data with FeatureLayer</title>
    <link href="https://www.arcgis.com/home/item.html?id=b66e25f43fbd48389cc996fef449694d" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>b66e25f43fbd48389cc996fef449694d</id>
    <updated>2021-11-12T19:27:42Z</updated>
    <published>2018-03-21T18:57:06Z</published>
    <summary type="html">This sample demonstrates how to enable &lt;a href='../jsapi/featurelayer-amd.html#webgl-rendering'&gt;WebGL rendering&lt;/a&gt; on a FeatureLayer. WebGL allows you to display more features in the view and update the renderer of the layer more rapidly.</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2018-03-21T18:57:06Z</dc:date>
  </entry>
  <entry>
    <title>Create a Geofence with Arcade</title>
    <link href="https://www.arcgis.com/home/item.html?id=38ceb8528f7a47c88f7ee27c9e86fe18" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>38ceb8528f7a47c88f7ee27c9e86fe18</id>
    <updated>2021-11-12T19:31:02Z</updated>
    <published>2017-12-04T19:32:14Z</published>
    <summary type="html">This sample demonstrates how to leverage &lt;a href='https://developers.arcgis.com/arcade/function-reference/geometry_functions/'&gt;geometry operations&lt;/a&gt; within &lt;a href='../jshelp/arcade.html'&gt;Arcade expressions&lt;/a&gt;. A StreamLayer is loaded representing fictional locations for city buses in Los Angeles. The renderer of the layer indicates whether a bus is located within a 3-mile buffer of the LA Convention Center. This is computed using the BufferGeodetic() function included in the Arcade language. Arcade is also used in the popup to compute the distance of each bus from the convention center in miles.</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2017-12-04T19:32:14Z</dc:date>
  </entry>
  <entry>
    <title>Filter features with clustering enabled</title>
    <link href="https://www.arcgis.com/home/item.html?id=ca55694986424b44a5019e70aba4bccc" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>ca55694986424b44a5019e70aba4bccc</id>
    <updated>2021-11-12T19:27:27Z</updated>
    <published>2017-09-08T20:00:00Z</published>
    <summary type="html">&lt;p&gt;This sample demonstrates how a layer with a &lt;a href='../jsapi/uniquevaluerenderer-amd.html' target='_blank'&gt;UniqueValueRenderer&lt;/a&gt; is visualized when &lt;a href='../jsapi/featurelayer-amd.html#setfeaturereduction' target='_blank'&gt;featureReduction&lt;/a&gt; (e.g. clustering) is enabled. It also shows how the clustering visualization is impacted when filters, or &lt;a href='../jsapi/featurelayer-amd.html#setdefinitionexpression' target='_blank'&gt;definitionExpressions&lt;/a&gt; are set on the layer. Filtering features with clustering enabled can help reveal patterns not easily discernible without any applied aggregation method.&lt;/p&gt;&lt;p&gt;Support for feature reduction is limited to the following scenarios:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The map must have a spatial reference of Web Mercator or WGS84.&lt;/li&gt;&lt;li&gt;FeatureLayer or CSVLayer with point geometries fewer than 50,000 features.&lt;/li&gt;&lt;li&gt;FeatureLayer created from a service URL must point to a service that supports pagination.&lt;/li&gt;&lt;li&gt;When editing is initiated with the Editor widget, then feature reduction is disabled until the Editor widget is destroyed.&lt;/li&gt;&lt;/ul&gt;</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2017-09-08T20:00:00Z</dc:date>
  </entry>
  <entry>
    <title>Basic clustering</title>
    <link href="https://www.arcgis.com/home/item.html?id=d4999e1c73c14abeb7d04492fe8b2add" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>d4999e1c73c14abeb7d04492fe8b2add</id>
    <updated>2021-11-12T19:27:23Z</updated>
    <published>2017-09-08T19:59:55Z</published>
    <summary type="html">&lt;p&gt;This sample demonstrates how to enable featureReduction (e.g. clustering) on a FeatureLayer. This is handled via the featureReduction constructor option, or the &lt;a href='../jsapi/featurelayer-amd.html#setfeaturereduction' target='_blank'&gt;setFeatureReduction()&lt;/a&gt; method.&lt;/p&gt;&lt;p&gt;Support for feature reduction is limited to the following scenarios:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The map must have a spatial reference of Web Mercator or WGS84.&lt;/li&gt;&lt;li&gt;FeatureLayer or CSVLayer with point geometries fewer than 50,000 features.&lt;/li&gt;&lt;li&gt;FeatureLayer created from a service URL must point to a service that supports pagination.&lt;/li&gt;&lt;li&gt;When editing is initiated with the Editor widget, then feature reduction is disabled until the Editor widget is destroyed.&lt;/li&gt;&lt;/ul&gt;</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2017-09-08T19:59:55Z</dc:date>
  </entry>
  <entry>
    <title>Toggle point clustering</title>
    <link href="https://www.arcgis.com/home/item.html?id=a2b80111d7be4f35811da545448d7d6c" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>a2b80111d7be4f35811da545448d7d6c</id>
    <updated>2021-11-12T19:27:25Z</updated>
    <published>2017-09-08T19:59:50Z</published>
    <summary type="html">&lt;p&gt;This sample highlights the separation between &lt;a href='../jsapi/featurelayer-amd.html#setfeaturereduction' target='_blank'&gt;featureReduction&lt;/a&gt; (e.g. clustering) and the renderer of a &lt;a href='../jsapi/featurelayer-amd.html' target='_blank'&gt;FeatureLayer&lt;/a&gt;. While clustering is used for visualization purposes, it is not a property of the renderer; it is a property of the layer. Therefore, when featureReduction is enabled, the renderer is still applied to the layer. If a renderer is driven by a numeric attribute, then each aggregate graphic is visualized using the average value of the features comprising that cluster. If a &lt;a href='../jsapi/uniquevaluerenderer-amd.html' target='_blank'&gt;UniqueValueRenderer&lt;/a&gt; is applied to the layer, then each cluster's color represents the predominant value represented by features comprising the cluster.&lt;/p&gt;&lt;p&gt;Support for feature reduction is limited to the following scenarios:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The map must have a spatial reference of Web Mercator or WGS84.&lt;/li&gt;&lt;li&gt;FeatureLayer or CSVLayer with point geometries fewer than 50,000 features.&lt;/li&gt;&lt;li&gt;FeatureLayer created from a service URL must point to a service that supports pagination.&lt;/li&gt;&lt;li&gt;When editing is initiated with the Editor widget, then feature reduction is disabled until the Editor widget is destroyed.&lt;/li&gt;&lt;/ul&gt;</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2017-09-08T19:59:50Z</dc:date>
  </entry>
  <entry>
    <title>Reference Arcade expressions in PopupTemplate</title>
    <link href="https://www.arcgis.com/home/item.html?id=929bc21122b5442cb3f09d2a6dab3ec8" rel="alternate"/>
    <author>
      <name>esri_webapi</name>
    </author>
    <id>929bc21122b5442cb3f09d2a6dab3ec8</id>
    <updated>2021-11-12T19:29:23Z</updated>
    <published>2017-06-14T19:39:39Z</published>
    <summary type="html">&lt;p&gt;This sample demonstrates how to display values returned from an &lt;a href='../jshelp/arcade.html' target='_blank'&gt;Arcade expression&lt;/a&gt; in a &lt;a href='../jsapi/popuptemplate-amd.html' target='_blank'&gt;PopupTemplate&lt;/a&gt; defined on a &lt;a href='../jsapi/featurelayer-amd.html' target='_blank'&gt;FeatureLayer&lt;/a&gt;. Arcade is useful for creating visualizations in a FeatureLayer based on a value calculated from an expression executed on the client. PopupTemplates can reference the same expressions used in renderers to effectively communicate the data-driven visualization.&lt;/p&gt;  

&lt;p&gt;In this sample, a layer representing U.S. counties is added to the map. Each feature contains attributes related to labor statistics in the county. The fields include the unemployment rate, population, and total employment. Arcade is used to calculate the labor force participation of each county.&lt;/p&gt;  

&lt;p&gt;Four arcade expressions are used in the app. Each Arcade expression must be referenced in the expressionInfos property of the PopupTemplate. The expressionInfos is an array of objects that assigns a name and a title to each expression.&lt;/p&gt;&lt;p&gt;The &lt;b&gt;name&lt;/b&gt; property is used to reference the expression value in the popupTemplate's content. The name must be prefaced by &lt;b&gt;expression/&lt;/b&gt;.&lt;/p&gt;&lt;p&gt;See the &lt;a href='../jshelp/arcade.html#popups' target='_blank'&gt;Popup profile&lt;/a&gt; of the Arcade expressions guide for more information.&lt;/p&gt;</summary>
    <dc:creator>esri_webapi</dc:creator>
    <dc:date>2017-06-14T19:39:39Z</dc:date>
  </entry>
</feed>