---
title: "ANGLE_instanced_arrays | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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.

# Interface ANGLE\_instanced\_arrays

The **`ANGLE_instanced_arrays`** extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)

interface ANGLE\_instanced\_arrays {  
    [VERTEX\_ATTRIB\_ARRAY\_DIVISOR\_ANGLE](#vertex_attrib_array_divisor_angle): 35070;  
    [drawArraysInstancedANGLE](#drawarraysinstancedangle-1)(  
        mode: number,  
        first: number,  
        count: number,  
        primcount: number,  
    ): void;  
    [drawElementsInstancedANGLE](#drawelementsinstancedangle-1)(  
        mode: number,  
        count: number,  
        type: number,  
        offset: number,  
        primcount: number,  
    ): void;  
    [vertexAttribDivisorANGLE](#vertexattribdivisorangle-1)(index: number, divisor: number): void;  
}

##### Index

### Properties[](#properties)

[VERTEX\_ATTRIB\_ARRAY\_DIVISOR\_ANGLE](#vertex_attrib_array_divisor_angle)

### Methods[](#methods)

[drawArraysInstancedANGLE](#drawarraysinstancedangle) [drawElementsInstancedANGLE](#drawelementsinstancedangle) [vertexAttribDivisorANGLE](#vertexattribdivisorangle)

## Properties[](#properties-1)

### `Readonly`VERTEX\_ATTRIB\_ARRAY\_DIVISOR\_ANGLE[](#vertex_attrib_array_divisor_angle)

VERTEX\_ATTRIB\_ARRAY\_DIVISOR\_ANGLE: 35070

## Methods[](#methods-1)

### drawArraysInstancedANGLE[](#drawarraysinstancedangle)

-   drawArraysInstancedANGLE(  
        mode: number,  
        first: number,  
        count: number,  
        primcount: number,  
    ): void[](#drawarraysinstancedangle-1)
    
    The **`ANGLE_instanced_arrays.drawArraysInstancedANGLE()`** method of the WebGL API renders primitives from array data like the gl.drawArrays() method. In addition, it can execute multiple instances of the range of elements.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
    
    #### Parameters
    
    -   mode: number
    -   first: number
    -   count: number
    -   primcount: number
    
    #### Returns void
    

### drawElementsInstancedANGLE[](#drawelementsinstancedangle)

-   drawElementsInstancedANGLE(  
        mode: number,  
        count: number,  
        type: number,  
        offset: number,  
        primcount: number,  
    ): void[](#drawelementsinstancedangle-1)
    
    The **`ANGLE_instanced_arrays.drawElementsInstancedANGLE()`** method of the WebGL API renders primitives from array data like the gl.drawElements() method. In addition, it can execute multiple instances of a set of elements.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)
    
    #### Parameters
    
    -   mode: number
    -   count: number
    -   type: number
    -   offset: number
    -   primcount: number
    
    #### Returns void
    

### vertexAttribDivisorANGLE[](#vertexattribdivisorangle)

-   vertexAttribDivisorANGLE(index: number, divisor: number): void[](#vertexattribdivisorangle-1)
    
    The **`ANGLE_instanced_arrays.vertexAttribDivisorANGLE()`** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)
    
    #### Parameters
    
    -   index: number
    -   divisor: number
    
    #### Returns void
