Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getItemMarker(geom, color) {
const shapeType = geom.get('shapeType') || 'point';
const shape = geom.getDefaultValue('shape') || 'circle';
const shapeObject = getShapeFactory(shapeType);
const cfg = { color };
const marker = shapeObject.getMarkerStyle(shape, cfg);
return marker;
}