---
layout: api
title: "v2.2.0 JavaScript Library: Upgrading from Mapbox.js v1"
categories: api
version: v2.2.0
permalink: /api/v2.2.0/upgrading-from-mapbox-js-v1/
---
<h2 id="section-upgrading-from-mapbox-js-v1">Upgrading from Mapbox.js v1</h2>
<p>In a few cases, you may need to make changes to code written for Mapbox.js 1.x
versions in order to work with Mapbox.js 2.x.</p>
<ul>
<li><p>Mapbox.js 2.x uses version 4 of the Mapbox web services API, which requires API access tokens.
You must supply an access t