Another Dekho post, this time about how to allow searching and selecting of features in a map service but not display it in the map.
At a current Dekho roll out, we had implemented a spatial view which was slow due to the need to show duplicate parcel geomteries. We didnt want to display the view since it was based on parcels which were already in the map service.
Initially we hid the layer from the Dekho map using a scale range of 1:1 to 1:1 (i.e. it would never display). This meant the layer could be searched on and this worked well. Then we found out the users also wanted to be able to select (on the map) from this slow spatial view. The problem with this is that Dekho requires the view to be visible in order to select/identify – obviously our 1:1 trick meant this wouldnt work!
So, how do you make a view “visible” (to selection tools) but “invisible” (on the map) at the same time?
Making the symbology transparent (or zero width) doesnt actually work since the map service actually renders the features even if they are transparent or zero width.
The nice folks at Esri Australia support suggested enabling caching but not generate any tiles (which had actually crossed my mind) and this worked. However the cached nature of the map service means the scale ranges are not honoured hence we could select our view features at ridiculous scale (e.g. 1:500 000).
The fix? Apply a scale range to the whole map service within the Dekho configuration MXD.