@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 548 B
JavaScript
import e from"../../core/Warning.js";import{createTypeReader as r}from"../../core/accessorSupport/extensions/serializableProperty/reader.js";import{rendererTypes as n}from"./types.js";function t(e,r){return o(e,null,r)}const s=r({types:n});function o(r,n,t){return r?r&&(r.styleName||r.styleUrl)&&"uniqueValue"!==r.type?(t&&t.messages&&t.messages.push(new e("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+r.type+"'",{definition:r,context:t})),null):s(r,n,t):null}export{t as fromJSON,o as read};