All Projects → mapbox → Mapbox.js

mapbox / Mapbox.js

Licence: other
Mapbox JavaScript API, a Leaflet Plugin

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Mapbox.js

kirby-locator
A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 only.
Stars: ✭ 83 (-95.44%)
Mutual labels:  map, leaflet, mapbox
Iclient Javascript
Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.
Stars: ✭ 593 (-67.4%)
Mutual labels:  map, leaflet
Leaflet Locatecontrol
A leaflet control to geolocate the user.
Stars: ✭ 539 (-70.37%)
Mutual labels:  mapbox, leaflet
Mapbox Gl Js
Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
Stars: ✭ 8,017 (+340.74%)
Mutual labels:  mapbox, map
Leaflet.easybutton
leaflet control buttons with icons and callbacks
Stars: ✭ 408 (-77.57%)
Mutual labels:  map, leaflet
Mapbox Gl Native
Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
Stars: ✭ 4,091 (+124.9%)
Mutual labels:  mapbox, map
Vue2leaflet
Vue 2 components for Leaflet maps
Stars: ✭ 1,809 (-0.55%)
Mutual labels:  map, leaflet
Leaflet.markercluster
Marker Clustering plugin for Leaflet
Stars: ✭ 3,305 (+81.69%)
Mutual labels:  map, leaflet
Leaflet Ng2
Angular.io integration of Leaflet
Stars: ✭ 66 (-96.37%)
Mutual labels:  map, leaflet
Leaflet.labeltextcollision
Leaflet.LabelTextCollision is a LeafletJS plug-in to display labels on vector data while avoiding label collisions.
Stars: ✭ 65 (-96.43%)
Mutual labels:  map, leaflet
Quizzity
A fast-paced geography quiz
Stars: ✭ 80 (-95.6%)
Mutual labels:  map, leaflet
React Leaflet
React components for Leaflet maps
Stars: ✭ 3,939 (+116.55%)
Mutual labels:  map, leaflet
Offlinemap
基于MySQL + Node.js + Leaflet的离线地图展示,支持百度、谷歌、高德、腾讯地图
Stars: ✭ 343 (-81.14%)
Mutual labels:  map, leaflet
Messenger
iOS - Real-time messaging app 🎨
Stars: ✭ 491 (-73.01%)
Mutual labels:  mapbox, map
Mbxmapkit
DEPRECATED - Lightweight Mapbox integration with MapKit on iOS
Stars: ✭ 332 (-81.75%)
Mutual labels:  mapbox, map
Maps
A Mapbox GL react native module for creating custom maps
Stars: ✭ 893 (-50.91%)
Mutual labels:  mapbox, map
Mapbox Gl Native Android
Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL
Stars: ✭ 135 (-92.58%)
Mutual labels:  mapbox, map
Leaflet-active-area
A Leaflet plugin to center the map not in the center of the map but inside a DIV. Useful for responsive design.
Stars: ✭ 99 (-94.56%)
Mutual labels:  map, leaflet
angular-mapboxgl-directive
AngularJS directive for Mapbox GL
Stars: ✭ 43 (-97.64%)
Mutual labels:  map, mapbox
Leaflet Geoman
🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
Stars: ✭ 1,088 (-40.19%)
Mutual labels:  mapbox, leaflet

mapbox.js

Build Status

A Mapbox plugin for Leaflet, a lightweight JavaScript library for traditional raster maps.

For the state-of-the-art Mapbox vector maps library, see Mapbox GL JS.

API

Managed as Markdown in API.md, following the standards in DOCUMENTING.md

Examples

Usage

Recommended usage is via the Mapbox CDN, with code snippets available on the official documentation page

The mapbox.js file includes the Leaflet library. Alternatively, you can use mapbox.standalone.js, which does not include Leaflet (you will have to provide it yourself).

See the API documentation and Examples for further help.

Usage with Browserify

Install the mapbox.js module and add it to dependencies in package.json:

npm install mapbox.js --save

Require mapbox in your script:

// main.js

require('mapbox.js'); // <-- auto-attaches to window.L

Browserify it:

browserify main.js -o bundle.js

Usage as Download

You can download a built release at the mapbox.js-bower repository.

Building

Requires node.js installed on your system.

git clone https://github.com/mapbox/mapbox.js.git
cd mapbox.js
npm install
make

This project uses browserify to combine dependencies and installs a local copy when you run npm install. make will build the project in dist/.

Tests

Test with phantomjs:

npm test

To test in a browser, run a local development server and go to /test.

Version v0.x.x

Version v0.x.x can be accessed in the v0 branch..

Editing Icons

Requirements:

inkscape
pngquant
  1. Make edits to theme/images/icons.svg.
  2. Run ./theme/images/render.sh to update sprites from your edits.
  3. Add a CSS reference with the appropriate pixel coordinate if adding a new icon.

Running documentation locally

Documentation is powered by Jekyll. Running using the following command:

./jekyll.sh
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].