Select to view content in your preferred language

Invisible OnDemand FeatureLayer still retreives features at startup

518
1
09-06-2010 08:07 AM
Joachim_EckboJuell
Occasional Contributor
Hi,

I have several FeatureLayers in my map with mode set to OnDemand. They have visibility set to false, and the initial resolution is outside the MaximumResolution for the layers. But still, the features are retreived from the service when the application starts. This seems strange. The user might never turn the layer on, and it makes the whole startup time really slow. I'm using the 2.0 version of the API agains 9.3.1 services.

Is there a way to avoid this?


-Joachim
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Thank you for your post. We will mark this as defect.

For the meantime, you can set the map's extent to be outside the layer's extent to avoid the features from being loaded.
0 Kudos