Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search option not looking into layers #6

Open
shivanit-cupertino opened this issue Apr 7, 2015 · 2 comments
Open

Search option not looking into layers #6

shivanit-cupertino opened this issue Apr 7, 2015 · 2 comments

Comments

@shivanit-cupertino
Copy link

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants