ThinkGeo.com    |     Documentation    |     Premium Support

Querying layer that is not visible

Hi,

We recently noticed that layers that should be hidden were still getting queried. That is our overriden GetFeaturesInsideBoundingBoxCore for example was getting called when layer.IsVisible == False or styling was restricted to different scales.

There was no problems with the layer being drawn as that was handled correctly.

We think it could, under certain circumstances, help performance by not doing an unnecessary query but we are not sure how best to get that information from inside the custom FeatureSource. Are there any existing methods that would help?

Regards,
Jonathan

Hi Jonathan,

Thanks for your post - I think you make a good point. I can’t think of any reason not to make the change you describe. I’ll bring it up with the product team and they should add it to their list of requested features.

Regarding the GetFeaturesInsideBoundingBoxCore, what is triggering this? Is it triggered on a map Refresh(), or are you changing extent to trigger it?

Thanks,
John

Hi John,

The way I have been testing is on zoom in / zoom out, so that does change the extent. But I think a refresh would do the same thing?

Regards,
Jonathan

Thanks Jonathan. I’ll let you know when the team start on this.