map-tools-template icon indicating copy to clipboard operation
map-tools-template copied to clipboard

Search option not looking into layers

Open shivanit-cupertino opened this issue 9 years ago • 2 comments

I have set these in default.js "search": true, "locationSearch": false, "searchExtent": true, "searchLayers":{ "id": "LandUseCases4",//"Boston_Marathon_7694", "fields": ["CASENAME", "CASESTATUS"] //"STATE_NAME" },

but search is not being performed on the layer. I have set the locationsearch to false , should it not search on location then? but it does search on location

shivanit-cupertino avatar Apr 07 '15 18:04 shivanit-cupertino

Perhaps your layer id value is incorrect? One way to test this is to configure the application using arcgis online then use the appid in the template and see if that works.

kellyhutchins avatar Apr 07 '15 20:04 kellyhutchins

when I added the appid, I can see that layer twice in the drop down for search. After making addLayerFromMap to false, I can see whatever I can in the app. Only the position is little out of place

shivanit-cupertino avatar Apr 07 '15 21:04 shivanit-cupertino