-
Notifications
You must be signed in to change notification settings - Fork 11
Bug with "Enable search" in ArcGIS Enterprise #1086
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
Comments
@mmoosbac94 Can you describe in a bit more detail the workflow you are having issues with? What search functionality (or APIs) are you using in the iOS app? |
@mhdostal We are using the ArcGIS Swift SDK and ArcGIS Enterprise. In our app, we use the queryFeatures method for layer search, which generally works as expected. The issue arises in the following workflow:
However, if you make any changes to the map and save it (in ArcGIS Enterprise map viewer), searching for layers stops working in the iOS app. The issue persists until you disable and re-enable the "Enable search" option. It seems that the "searchable" information is lost whenever the map is modified and saved. |
Are there any updates on this? |
Sorry for the delay, we've been busy with the 200.7 Release, but now that that's out the door, someone will be looking at this. Thank you for your patience! Mark |
@mmoosbac94 I've dug into this a little bit, looking at the web map JSON w/regards to the "Enable search" functionality. I've used the ArcGIS Online Assistant site to examine the JSON and Data for a web map on an Enterprise portal. The JSON around the "Enable search" option does not change if I make an unrelated change to the map. Some questions to help reproduce/resolve this:
I see the following in the "Data" section (bottom half of the view):
That section doesn't change if I make an unrelated edit to the web map.
Thanks, hopefully we can figure this out. |
@mhdostal Thanks for your effort on this. I took a closer look into the issue and was able to identify the cause. The problem only occurs when using the new map viewer — the old one behaves correctly and thus searching in layers works for us. When using the new map viewer, we receive slightly different versions of the map JSON depending on whether the map is edited and saved after enabling search in the settings. The JSON from the old map viewer, or from the new one if the map is not edited after enabling search (which I assume is the correct behavior), includes an empty "tables" array parameter. However, if the map is edited with the new map viewer, the "tables" parameter disappears. This was the reason our JSON decoding failed in the iOS app. We were able to fix the issue on our end by handling the "tables" parameter as optional, but I believe this behavior in the new map viewer is unintended? |
I'm not sure if this is the right place to report this issue, but we've encountered a bug in ArcGIS Enterprise related to the "Enable search" setting in maps.
When you activate "Enable search" after creating a map and configuring the layers, searching within the map's layer features works as expected. However, if you later make changes to the map and save it, the "Enable search" setting remains enabled, but search functionality stops working in the iOS app.
As a workaround, disabling and re-enabling the "Enable search" setting restores functionality.
Are you aware of this issue?
The text was updated successfully, but these errors were encountered: