---
title: "ProjectionDefinition | 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.

# Class ProjectionDefinition

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[from](#from) [to](#to) [transition](#transition)

### Methods[](#methods)

[interpolate](#interpolate) [parse](#parse)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new ProjectionDefinition(  
        from: string,  
        to: string,  
        transition: number,  
    ): ProjectionDefinition[](#constructorprojectiondefinition)
    
    #### Parameters
    
    -   from: string
    -   to: string
    -   transition: number
    
    #### Returns ProjectionDefinition
    

## Properties[](#properties-1)

### `Readonly`from[](#from)

from: string

### `Readonly`to[](#to)

to: string

### `Readonly`transition[](#transition)

transition: number

## Methods[](#methods-1)

### `Static`interpolate[](#interpolate)

-   interpolate(from: string, to: string, t: number): ProjectionDefinition[](#interpolate-1)
    
    #### Parameters
    
    -   from: string
    -   to: string
    -   t: number
    
    #### Returns ProjectionDefinition
    

### `Static`parse[](#parse)

-   parse(input?: any): ProjectionDefinition[](#parse-1)
    
    #### Parameters
    
    -   `Optional`input: any
    
    #### Returns ProjectionDefinition
