---
title: "mapTextureDataToCanvas | Augmented reality | JavaScript maps SDK"
description: "Documentation for AR Control"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function mapTextureDataToCanvas

-   mapTextureDataToCanvas(mtd: MapTextureData): HTMLCanvasElement[](#maptexturedatatocanvas)
    
    #### Parameters
    
    -   mtd: MapTextureData
    
    #### Returns HTMLCanvasElement
    
    -   Defined in [src/MaptilerARControl.ts:55](https://github.com/maptiler/maptiler-ar-control/blob/50ea0ab9f5769eef2f89078bebb3618f29c1bda6/src/MaptilerARControl.ts#L55)
