Esri / map-tools-template

Configurable application template that enables you to display an ArcGIS web map using a variety of tools.
Apache License 2.0
23 stars 32 forks source link

Search option not looking into layers #6

Open shivanit-cupertino opened 9 years ago

shivanit-cupertino commented 9 years ago

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

kellyhutchins commented 9 years ago

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.

shivanit-cupertino commented 9 years ago

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