Document that map render events do not have a context set

This commit is contained in:
Andreas Hocevar
2019-10-24 16:32:04 +02:00
parent 2b0256140e
commit 61c4fa8cd6
2 changed files with 5 additions and 2 deletions

View File

@@ -33,8 +33,8 @@ class RenderEvent extends Event {
this.frameState = opt_frameState;
/**
* Canvas context. Only available when a Canvas renderer is used, null
* otherwise.
* Canvas context. Not available when the event is dispatched by the map. Only available
* when a Canvas renderer is used, null otherwise.
* @type {CanvasRenderingContext2D|null|undefined}
* @api
*/