--- layout: api title: "v2.0.1 JavaScript Library: L.mapbox.styleLayer(url, options)" categories: api version: v2.0.1 permalink: /api/v2.0.1/l-mapbox-stylelayer/ ---
Extends: L.tileLayer
L.mapbox.styleLayer
provides a way to integrate styles created with Mapbox Studio into your map.
Options | Value | Description |
---|---|---|
url | string | Must be a string like mapbox://styles/mapbox/cin286r4x006safncofpcb71v |
options | object | If provided, it is the same options as provided to L.tileLayer , as well as:
|
Example:
var styleLayer = L.mapbox.styleLayer(url)
.addTo(map);
Returns a L.mapbox.styleLayer
object.