You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a nice way of copying all traits across instead of having to use createStratumInstance for each LegendTraits (and then createStratumInstance for each LegendItemTraits )?
For example
constlegend=createStratumInstance(LegendTraits,layerStyle.legend)legend.url='change the url to something...'result.push(legend)
The text was updated successfully, but these errors were encountered:
We can't
createStratumInstance
with traits which have nestedobjectTraits
(or arrays...)From slack:
... in WMS catalog item we have
LegendTraits
andWebMapServiceAvailableLayerStylesTraits
which also includesLegendTraits
We copy
LegendTraits
fromavailableStyles
in@computed get legends()...
- https://github.com/TerriaJS/terriajs/blob/next/lib/Models/WebMapServiceCatalogItem.ts#L163-L166Is there a nice way of copying all traits across instead of having to use
createStratumInstance
for eachLegendTraits
(and thencreateStratumInstance
for eachLegendItemTraits
)?For example
The text was updated successfully, but these errors were encountered: