--- layout: api title: "v2.2.1 JavaScript Library: Upgrading from Mapbox.js v1" categories: api version: v2.2.1 permalink: /api/v2.2.1/upgrading-from-mapbox-js-v1 ---

Upgrading from Mapbox.js v1

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.