Allows applications to overlay data on top of maps using a canvas.
redraw (Function)Called every time the map updates.
Parameters:
ctx {CanvasRenderingContext2D} - rendering context of the canvaswidth {Number} - width of the viewportheight {Number} - height of the viewportproject {Function} - get screen position [x, y] from geo coordinates [lng, lat]unproject {Function} - get geo coordinates [lng, lat] from screen position [x, y]captureScroll (Boolean)falseStop propagation of mouse wheel event to the map component. Can be used to stop map from zooming when this component is scrolled.
captureDrag (Boolean)falseStop propagation of dragstart event to the map component. Can be used to stop map from panning when this component is dragged.
captureClick (Boolean)falseStop propagation of click event to the map component. Can be used to stop map from calling the onClick callback when this component is clicked.
captureDoubleClick (Boolean)falseStop propagation of dblclick event to the map component. Can be used to stop map from zooming when this component is double clicked.
capturePointerMove (Boolean)falseStop propagation of pointermove event to the map component. Can be used to stop map from calling the onMouseMove or onTouchMove callback when this component is hovered.