add a default style (precalculalted and stored in geoserver) for a layer (vector or tiff)

dt_addDefaultStyleToDataLayer(stylename, datalayername, isglobalstyle = FALSE)

Arguments

stylename

style name (without workspace infomation)

datalayername

datalyer name, workspace information will be automatically attached based on devkey account

isglobalstyle

if TRUE, workspace information will not be attached. set this to TRUE if the style is hard coded in Geoserver. This is useful for creating common styles (such as shadow intensity, rainfall and temperature) at the application/built-in model level, rather than individual job level

Value

if success, a published datalayername; otherwise, empty string