Mapzen.js is an open-source JavaScript SDK and an extension of Leaflet for making maps for the web and mobile devices. Mapzen.js simplifies the process of using Mapzen's maps within Leaflet.
Mapzen.js contains all the Leaflet functionality, as well as additional tools for working with Mapzen maps and search. With Mapzen.js you can add Mapzen map styles as basemaps, build a customizable geocoder with Mapzen Search, and share links to maps.
You can find tutorials and a full API reference at https://mapzen.com/documentation/mapzen-js/.
The source files for the documentation are in the [/docs] folder(https://github.com/mapzen/mapzen.js/tree/master/docs) of this repository.
To reference the Mapzen.js cascading style sheet (CSS) and JavaScript file, add these links to your page.
<!-- style sheet for mapzen.js -->
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<!-- latest version of mapzen.js-->
<script src="https://mapzen.com/js/mapzen.js"></script>
<!-- latest minified version of mapzen.js -->
<script src="https://mapzen.com/js/mapzen.min.js"></script>
You can use npm if you want to build locally.
Mapzen.js includes components from these awesome open-source projects: