<?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 Map click events for larger feature layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243811#M22569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature layer of ~200,000 parcels that I need users to be able to click on individually and display popup information and highlight a given parcel. Because of the 4,000 feature limit imposed in the 4.x API, I have published the layer as a vector tile layer so that I can display all the parcels. Otherwise, if I try to share the feature layer as a service, only 4,000 of the 200,000 parcels are drawn. However, a popup still generates on each clicked feature, even if it's not one of the lucky 4,000. But because I need both, I have a vector tile layer drawn over the feature layer, which I have given null symbology (no fill or outline). One layer is for showing the parcels (tile), and one layer is for accessing the popup data (feature layer). This seems like a cumbersome workaround, but it's what I've come up with given my project needs and the limitations of the 4.x API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's my problem: I need to be able to highlight each parcel as it's clicked on, but the view.hitTest method only generates a result response (besides the screenPoint coordinates) when it hits a graphic. But since only 4,000 of the 200,000 parcels are drawn as graphics, the hitTest only returns a result 2% of the time. How can I make this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, I'll also need to be able to generate a spatial query to an overlying floodplain layer to determine if a given parcel overlaps part of the floodplain, and which flood zone it's in. How can I do this on a map click if only 4,000 features return a result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is for the map to be able to render only the features that are present in the view at any given time, like mode ON_DEMAND from the 3.x API, but this doesn't seem like it's built into the 4.x release yet. That way I could publish a 200,000 feature service and render the parcels when zoomed in without bogging everything down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2016 23:02:49 GMT</pubDate>
    <dc:creator>PaigeKercher</dc:creator>
    <dc:date>2016-12-14T23:02:49Z</dc:date>
    <item>
      <title>Map click events for larger feature layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243811#M22569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature layer of ~200,000 parcels that I need users to be able to click on individually and display popup information and highlight a given parcel. Because of the 4,000 feature limit imposed in the 4.x API, I have published the layer as a vector tile layer so that I can display all the parcels. Otherwise, if I try to share the feature layer as a service, only 4,000 of the 200,000 parcels are drawn. However, a popup still generates on each clicked feature, even if it's not one of the lucky 4,000. But because I need both, I have a vector tile layer drawn over the feature layer, which I have given null symbology (no fill or outline). One layer is for showing the parcels (tile), and one layer is for accessing the popup data (feature layer). This seems like a cumbersome workaround, but it's what I've come up with given my project needs and the limitations of the 4.x API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's my problem: I need to be able to highlight each parcel as it's clicked on, but the view.hitTest method only generates a result response (besides the screenPoint coordinates) when it hits a graphic. But since only 4,000 of the 200,000 parcels are drawn as graphics, the hitTest only returns a result 2% of the time. How can I make this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, I'll also need to be able to generate a spatial query to an overlying floodplain layer to determine if a given parcel overlaps part of the floodplain, and which flood zone it's in. How can I do this on a map click if only 4,000 features return a result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is for the map to be able to render only the features that are present in the view at any given time, like mode ON_DEMAND from the 3.x API, but this doesn't seem like it's built into the 4.x release yet. That way I could publish a 200,000 feature service and render the parcels when zoomed in without bogging everything down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 23:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243811#M22569</guid>
      <dc:creator>PaigeKercher</dc:creator>
      <dc:date>2016-12-14T23:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map click events for larger feature layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243812#M22570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Paige,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; You should just use the vector tile layer and add a click event listener to the view and do a QueryTask on the map service for the parcel layer and use the returned geometry to add a graphic to the map for the parcel highlight. The is actually what a popup assigned to a ArcGISDynamicMapServiceLayer in the 3.x &amp;nbsp;API does behind the scenes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 23:12:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243812#M22570</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-14T23:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Map click events for larger feature layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243813#M22571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that's a good idea. I will try this!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 23:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-click-events-for-larger-feature-layers/m-p/243813#M22571</guid>
      <dc:creator>PaigeKercher</dc:creator>
      <dc:date>2016-12-14T23:34:07Z</dc:date>
    </item>
  </channel>
</rss>

