def project_drawn(cb, msg):
stream = cb.streams[<NUM_LIT:0>]<EOL>old_data = stream.data<EOL>stream.update(data=msg['<STR_LIT:data>'])<EOL>element = stream.element<EOL>stream.update(data=old_data)<EOL>proj = cb.plot.projection<EOL>if not isinstance(element, _Element) or element.crs == proj:<EOL><INDENT>return None<EOL><DEDENT>crs = element.crs<EOL>element.crs = proj<EOL>return project(element, projection=crs)<EOL>
Projects a drawn element to the declared coordinate system