<?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 Issue in visualization of a feature layer served through Koop in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/issue-in-visualization-of-a-feature-layer-served/m-p/1364250#M6874</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a csv file(around 40000 recrords) that is loaded in koop and then loaded in a webscene as a featurelayer. The layer is being rendered using UniqueValueRenderer with a WebSyleSymbol.&lt;/P&gt;&lt;P&gt;The features are visible at all scales until all the features are downloaded on client side(paginated requests, as observed in the network activity)&amp;nbsp;&lt;BR /&gt;and after the layer is loaded fully , the features are only visible when zoomed out and disappear if zoomed in.&lt;/P&gt;&lt;P&gt;The same behaviour/issue is noticed if the featurelayer is served from a GeoJSON in Koop.&lt;/P&gt;&lt;P&gt;A featureLayer consumed from an ArcGIS server works with out any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;visualVariables=new Array&amp;lt;VisualVariable&amp;gt;();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;visualVariables.push(new SizeVariable({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;valueExpression:"10000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}));&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;let renderer=new UniqueValueRenderer({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;defaultSymbol:new WebStyleSymbol({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;name:"Acer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;styleName: "EsriRealisticTreesStyle"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;visualVariables: visualVariables&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;})&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;const vegetationLayer = new FeatureLayer({&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;url:"&lt;A href="http://localhost:8089/koop-provider-csv/rest/services/cities/FeatureServer/0" target="_blank"&gt;http://localhost:8089/koop-provider-csv/rest/services/cities/FeatureServer/0&lt;/A&gt;",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;elevationInfo: {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;mode: "on-the-ground"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;renderer: renderer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;outFields: ["*"],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;minScale:0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;maxScale:0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;geometryType:"point",&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;});&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I am attaching a video that shows the actual issue in action.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Dec 2023 11:59:59 GMT</pubDate>
    <dc:creator>imrankhadri</dc:creator>
    <dc:date>2023-12-25T11:59:59Z</dc:date>
    <item>
      <title>Issue in visualization of a feature layer served through Koop</title>
      <link>https://community.esri.com/t5/developers-questions/issue-in-visualization-of-a-feature-layer-served/m-p/1364250#M6874</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a csv file(around 40000 recrords) that is loaded in koop and then loaded in a webscene as a featurelayer. The layer is being rendered using UniqueValueRenderer with a WebSyleSymbol.&lt;/P&gt;&lt;P&gt;The features are visible at all scales until all the features are downloaded on client side(paginated requests, as observed in the network activity)&amp;nbsp;&lt;BR /&gt;and after the layer is loaded fully , the features are only visible when zoomed out and disappear if zoomed in.&lt;/P&gt;&lt;P&gt;The same behaviour/issue is noticed if the featurelayer is served from a GeoJSON in Koop.&lt;/P&gt;&lt;P&gt;A featureLayer consumed from an ArcGIS server works with out any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;visualVariables=new Array&amp;lt;VisualVariable&amp;gt;();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;visualVariables.push(new SizeVariable({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;valueExpression:"10000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}));&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;let renderer=new UniqueValueRenderer({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;defaultSymbol:new WebStyleSymbol({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;name:"Acer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;styleName: "EsriRealisticTreesStyle"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;visualVariables: visualVariables&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;})&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;const vegetationLayer = new FeatureLayer({&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;url:"&lt;A href="http://localhost:8089/koop-provider-csv/rest/services/cities/FeatureServer/0" target="_blank"&gt;http://localhost:8089/koop-provider-csv/rest/services/cities/FeatureServer/0&lt;/A&gt;",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;elevationInfo: {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;mode: "on-the-ground"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;renderer: renderer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;outFields: ["*"],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;minScale:0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;maxScale:0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;geometryType:"point",&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;});&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I am attaching a video that shows the actual issue in action.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 11:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/issue-in-visualization-of-a-feature-layer-served/m-p/1364250#M6874</guid>
      <dc:creator>imrankhadri</dc:creator>
      <dc:date>2023-12-25T11:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in visualization of a feature layer served through Koop</title>
      <link>https://community.esri.com/t5/developers-questions/issue-in-visualization-of-a-feature-layer-served/m-p/1364295#M6875</link>
      <description>&lt;P&gt;I have observed the following difference between feature layers hosted on Koop and ArcGIS Server&lt;/P&gt;&lt;P&gt;In case of Feature layer hosted on ArcGIS Server, the feature query requests are applied with a spatial Filter i.e records within current view extent are fetched whereas the features from koopjs layers are downloaded completely through paginated requests.&lt;/P&gt;&lt;P&gt;So I thought of enabling koopjs requests to query based on view extent. The following undocumented trick solves the issue temporarily and is just a workaround. Now my layer loads properly at all scales.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Add this in a script tag prior to loading the API to enable extent based requests.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;var dojoConfig = { has: { "featurelayer-snapshot-enabled": 0 // disable snapshot } };&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone throw some light on why the this is happening?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 11:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/issue-in-visualization-of-a-feature-layer-served/m-p/1364295#M6875</guid>
      <dc:creator>imrankhadri</dc:creator>
      <dc:date>2023-12-26T11:39:43Z</dc:date>
    </item>
  </channel>
</rss>

