Select to view content in your preferred language

Support for workspaceLayer in dynamic Map Service in Maps SDK

322
1
10-06-2025 06:29 AM
ImreZuber_VertiGIS
New Contributor

We want to support dynamic layers via lyrx file in dynamic MapService, but it seems it's only possible via ArcGIS REST API: see dynamic layer setting with workspaceLayer support. The same thing is not supported in Maps SDK, I got an error from Accessor that the given property value 'workspaceLayer' is invalid and needs to be one of 'DataLayerSource or MapLayerSource'. This fully corresponds with the Maps SDK documentation, no words about workspaceLayer in DataLayer section (only table, query table, raster and jointable).

So the question is: is it intended that the SDK does not support this type of data layer source for dynamic Map services and if yes, when will SDK catch up with this very interesting REST functionality?

1 Reply
ZdeněkJankovský
Esri Contributor

Hi, I found out today that LYRX Dynamic Workspace isn’t supported in the ArcGIS Maps SDK for JavaScript. I’m trying to use it in Experience Builder 1.19.
As a workaround, I used mapImageLyr.customParameters to pass complete LYRX Dyn Wrks definition and used minimal sublayer info (id/title/visibility) in SubLayer object so the app can control sublayer visibility and map service sublayers. It works for my use case, but it’s not a full Dynamic Workspace implementation.

0 Kudos