Set Layer Definition Expression not drawing layers on screen correctly
Hi!
I've been attempting to use the definition expression functions in Geocortex Workflow 5.20.1 and have been partially successful with it, but have been having bugs with the viewer (Geocortex Essentials 4.14.2)
I set up a form in workflow that will switch between multiple definition queries (using Set Layer Definition Expression), but the layers being drawn on the screen disappear and reappear with zooming/panning after using it.
The layer/sublayers are set correctly, and when the data does show on the screen, it's only for the selected expression (example, Layer Id: 64, Sublayer Id: 7, Expression MAINT_AREA = "C"). Moreover, the map registers that there is data there, even if it doesn't draw it, as seen by clicking the map and having the map tip/selection polygon show up. Does anyone know why the workflow/viewer is functioning like this with this tool? It doesn't have issues showing the layer before running the tool, and begins to act erratically afterward.
Is there a better way that I should be handling dynamic definition expressions, or is there something buggy going on? Has anyone else had this issue?
Best,
Vyla
-
Is the setting "Allow per request modification of layer order and symbology" enabled for the mapservice? Makes it a difference when you disable it?
0 -
Hi Nico,
It does have it enabled. I turned it off from the server, and had the service not draw at all (rather than intermittently), along with a messaging of a "Cross-Origin Read Blocking (CORB) blocked cross-origin response" on the browser console that I didn't get before. I turned it back on, and that error message went away.
0 -
I have the set layer definition expression working properly in web app builder. Did you get it working in your viewer?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare