This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Josh Erb
authored
Mar 20, 2020
1 parent
dae3498
commit e5392a3
Showing
82 changed files
with
15,123 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,286 @@ | ||
--- | ||
layout: api | ||
title: "v3.3.0 JavaScript Library: All" | ||
categories: api | ||
version: v3.3.0 | ||
description: Build anything with Mapbox.js v3.3.0, a library for fast & interactive maps. | ||
permalink: /api/v3.3.0/ | ||
tags: v3.3.0 | ||
splash: true | ||
navigation: | ||
- title: "Map Object" | ||
id: map-object | ||
nav: | ||
- title: "L.mapbox.map" | ||
id: l-mapbox-map | ||
nav: | ||
- title: "map.getTileJSON" | ||
id: map-gettilejson | ||
nav: | ||
- title: "Layers" | ||
id: layers | ||
nav: | ||
- title: "L.mapbox.tileLayer" | ||
id: l-mapbox-tilelayer | ||
nav: | ||
- title: "tileLayer.getTileJSON" | ||
id: tilelayer-gettilejson | ||
nav: | ||
- title: "tileLayer.setFormat" | ||
id: tilelayer-setformat | ||
nav: | ||
- title: "L.mapbox.gridLayer" | ||
id: l-mapbox-gridlayer | ||
nav: | ||
- title: "gridLayer.on" | ||
id: gridlayer-on | ||
nav: | ||
- title: "gridLayer.getTileJSON" | ||
id: gridlayer-gettilejson | ||
nav: | ||
- title: "gridLayer.getData" | ||
id: gridlayer-getdata | ||
nav: | ||
- title: "L.mapbox.featureLayer" | ||
id: l-mapbox-featurelayer | ||
nav: | ||
- title: "featureLayer.loadURL" | ||
id: featurelayer-loadurl | ||
nav: | ||
- title: "featureLayer.loadID" | ||
id: featurelayer-loadid | ||
nav: | ||
- title: "featureLayer.setFilter" | ||
id: featurelayer-setfilter | ||
nav: | ||
- title: "featureLayer.getFilter" | ||
id: featurelayer-getfilter | ||
nav: | ||
- title: "featureLayer.setGeoJSON" | ||
id: featurelayer-setgeojson | ||
nav: | ||
- title: "featureLayer.getGeoJSON" | ||
id: featurelayer-getgeojson | ||
nav: | ||
- title: "L.mapbox.styleLayer" | ||
id: l-mapbox-stylelayer | ||
nav: | ||
- title: "Geocoding" | ||
id: geocoding | ||
nav: | ||
- title: "L.mapbox.geocoder" | ||
id: l-mapbox-geocoder | ||
nav: | ||
- title: "geocoder.query" | ||
id: geocoder-query | ||
nav: | ||
- title: "geocoder.reverseQuery" | ||
id: geocoder-reversequery | ||
nav: | ||
- title: "Controls" | ||
id: controls | ||
nav: | ||
- title: "L.mapbox.legendControl" | ||
id: l-mapbox-legendcontrol | ||
nav: | ||
- title: "legendControl.addLegend" | ||
id: legendcontrol-addlegend | ||
nav: | ||
- title: "legendControl.removeLegend" | ||
id: legendcontrol-removelegend | ||
nav: | ||
- title: "L.mapbox.gridControl" | ||
id: l-mapbox-gridcontrol | ||
nav: | ||
- title: "gridControl.hide" | ||
id: gridcontrol-hide | ||
nav: | ||
- title: "gridControl.setTemplate" | ||
id: gridcontrol-settemplate | ||
nav: | ||
- title: "L.mapbox.geocoderControl" | ||
id: l-mapbox-geocodercontrol | ||
nav: | ||
- title: "geocoderControl.setURL" | ||
id: geocodercontrol-seturl | ||
nav: | ||
- title: "geocoderControl.setID" | ||
id: geocodercontrol-setid | ||
nav: | ||
- title: "geocoderControl.setTileJSON" | ||
id: geocodercontrol-settilejson | ||
nav: | ||
- title: "geocoderControl.on" | ||
id: geocodercontrol-on | ||
nav: | ||
- title: "L.mapbox.shareControl" | ||
id: l-mapbox-sharecontrol | ||
nav: | ||
- title: "Markers" | ||
id: markers | ||
nav: | ||
- title: "L.mapbox.marker.icon" | ||
id: l-mapbox-marker-icon | ||
nav: | ||
- title: "L.mapbox.marker.style" | ||
id: l-mapbox-marker-style | ||
nav: | ||
- title: "Simplestyle" | ||
id: simplestyle | ||
nav: | ||
- title: "L.mapbox.simplestyle.style" | ||
id: l-mapbox-simplestyle-style | ||
nav: | ||
- title: "Utility" | ||
id: utility | ||
nav: | ||
- title: "L.mapbox.sanitize" | ||
id: l-mapbox-sanitize | ||
nav: | ||
- title: "L.mapbox.template" | ||
id: l-mapbox-template | ||
nav: | ||
- title: "Configuration" | ||
id: configuration | ||
nav: | ||
- title: "L.mapbox.accessToken" | ||
id: l-mapbox-accesstoken | ||
nav: | ||
- title: "L.mapbox.config.FORCE_HTTPS" | ||
id: l-mapbox-config-force_https | ||
nav: | ||
- title: "L.mapbox.config.HTTP_URL" | ||
id: l-mapbox-config-http_url | ||
nav: | ||
- title: "L.mapbox.config.HTTPS_URL" | ||
id: l-mapbox-config-https_url | ||
nav: | ||
- title: "Guides" | ||
id: guides | ||
nav: | ||
- title: "API access tokens" | ||
id: api-access-tokens | ||
nav: | ||
- title: "Upgrading from Mapbox.js v1" | ||
id: upgrading-from-mapbox-js-v1 | ||
nav: | ||
- title: "Mobile" | ||
id: mobile | ||
nav: | ||
- title: "Viewport" | ||
id: viewport | ||
nav: | ||
- title: "Scrolling" | ||
id: scrolling | ||
nav: | ||
- title: "Theming" | ||
id: theming | ||
nav: | ||
- title: "Dark theme" | ||
id: dark-theme | ||
nav: | ||
- title: "Standalone" | ||
id: standalone | ||
nav: | ||
- title: Leaflet | ||
nav: | ||
- title: L.Map | ||
id: l-map-class | ||
- title: L.Marker | ||
id: l-marker | ||
- title: L.Popup | ||
id: l-popup | ||
- title: L.TileLayer | ||
id: l-tilelayer | ||
- title: L.TileLayer.WMS | ||
id: l-tilelayer-wms | ||
- title: L.TileLayer.Canvas | ||
id: l-tilelayer-canvas | ||
- title: L.ImageOverlay | ||
id: l-imageoverlay | ||
- title: L.Path | ||
id: l-path | ||
- title: L.Polyline | ||
id: l-polyline | ||
- title: L.MultiPolyline | ||
id: l-multipolyline | ||
- title: L.Polygon | ||
id: l-polygon | ||
- title: L.MultiPolygon | ||
id: l-multipolygon | ||
- title: L.Rectangle | ||
id: l-rectangle | ||
- title: L.Circle | ||
id: l-circle | ||
- title: L.CircleMarker | ||
id: l-circlemarker | ||
- title: L.LayerGroup | ||
id: l-layergroup | ||
- title: L.FeatureGroup | ||
id: l-featuregroup | ||
- title: L.GeoJson | ||
id: l-geojson | ||
- title: L.LatLng | ||
id: l-latlng | ||
- title: L.LatLngBounds | ||
id: l-latlngbounds | ||
- title: L.Point | ||
id: l-point | ||
- title: L.Bounds | ||
id: l-bounds | ||
- title: L.Icon | ||
id: l-icon | ||
- title: L.DivIcon | ||
id: l-divicon | ||
- title: L.Control | ||
id: l-control | ||
- title: L.Control.zoom | ||
id: l-control-zoom | ||
- title: L.Control.Attribution | ||
id: l-control-attribution | ||
- title: L.Control.Layers | ||
id: l-control-layers | ||
- title: L.Control.Scale | ||
id: l-control-scale | ||
- title: Events methods | ||
id: l-events | ||
- title: Event objects | ||
id: l-event-objects | ||
- title: L.Class | ||
id: l-class | ||
- title: L.Browser | ||
id: l-browser | ||
- title: L.Util | ||
id: l-util | ||
- title: L.Transformation | ||
id: l-transformation | ||
- title: L.LineUtil | ||
id: l-lineutil | ||
- title: L.PolyUtil | ||
id: l-polyutil | ||
- title: L.DomEvent | ||
id: l-domevent | ||
- title: L.DomUtil | ||
id: l-domutil | ||
- title: L.PosAnimation | ||
id: l-posanimation | ||
- title: L.Draggable | ||
id: l-draggable | ||
- title: L.IHandler | ||
id: l-ihandler | ||
- title: L.ILayer | ||
id: l-ilayer | ||
- title: L.IControl | ||
id: l-icontrol | ||
- title: L.IProjection | ||
id: l-iprojection | ||
- title: L.ICRS | ||
id: l-icrs | ||
- title: Global Switches | ||
id: l-global | ||
- title: L.noConflict | ||
id: l-noconflict | ||
- title: L.version | ||
id: l-version | ||
--- | ||
{% include api.introduction.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
layout: api | ||
title: "v3.3.0 JavaScript Library: API access tokens" | ||
categories: api | ||
version: v3.3.0 | ||
permalink: /api/v3.3.0/api-access-tokens/ | ||
--- | ||
<h2 id="section-api-access-tokens">API access tokens</h2> | ||
<p>Mapbox.js uses the Mapbox web services API, which requires an API access token. You must | ||
supply an access token to Mapbox.js:</p> | ||
<pre><code> L.mapbox.accessToken = '<your access token>';</code></pre><p>To obtain an access token, sign in to Mapbox and visit the <a href="https://www.mapbox.com/account/apps/">Account Apps</a> | ||
page. For Mapbox.js, a "Public" token (starting with "pk") is required.</p> | ||
<p>You may create multiple tokens and use different ones for different applications. If | ||
necessary, you can use different tokens on the same page by using the <code>accessToken</code> | ||
option when creating Mapbox.js objects. For example:</p> | ||
<pre><code> var map = L.mapbox.map('map', 'mapbox.outdoors', { | ||
accessToken: '<your access token>' | ||
});</code></pre><p>For additional help, see <a href="https://www.mapbox.com/help/create-api-access-token/">"How do I create an API access token?"</a>.</p> |
Oops, something went wrong.