A tile renderer handles converting JSON vector content loaded from the MapDotNet REST feature service into a canvas rendering on a tile.
Sets the render bitmap function which takes a bitmap image and a canvas context and renders the image to the canvas context.
Function with the signature func(img, context, contextSize, bleed) where img is the bitmap image to render, context is the canvas context on which to render the image, contextSize is the size of the canvas context in pixels and bleed is the margin around each tile to bleed.
Sets render geometry function which takes a geometry and canvas context and renders the geometry to the canvas context. The geometries passed in are transformed to pixel units and offset to the context origin.
Function with signature func(shape, context) where shape is the geometry to render and context is the canvas context on which to render.
Sets the render point function which takes a point and canvas context and renders the point to the canvas. The points passed in are transformed to pixel units and offset to context origin.
Function of the form func(shape, context) where shape is the point object to be rendered and context is the canvas context on which to render.