Bind an event listener. This method can be used with a type parameter by call sites; although it's not necessary it can be helpful to use this to ensure you've thought about what the payload to your event handler is going to be.
Unbind the given event listener, or all listeners. If you call this method with no arguments then all event listeners are unbound.
OptionaleventOrListener: string | FunctionEither an event name, or an event handler function
Optionallistener: FunctionIf eventOrListener is defined, this is the event handler to unbind.
Draws a diamond. Internally this is an arrow overlay with a
foldbackpoint set to 2 times the arrow's length.