Skip to content

Interactive, extendable street imagery map experiences in the browser, powered by WebGL

License

Notifications You must be signed in to change notification settings

mapillary/mapillary-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d672d91 · Dec 20, 2016
Nov 16, 2016
Jul 27, 2016
Dec 19, 2016
Dec 20, 2016
Aug 29, 2016
Nov 18, 2016
Nov 13, 2015
Aug 24, 2016
Jan 18, 2016
Jan 13, 2016
Oct 14, 2016
Jun 16, 2016
Jan 13, 2016
Oct 28, 2016
Dec 20, 2016
Oct 14, 2016
Oct 14, 2016
Dec 20, 2016
Oct 28, 2016
Nov 18, 2016
Mar 22, 2016
Nov 18, 2016

Repository files navigation

Build Status

MapillaryJS

MapillaryJS is a JavaScript & WebGL library that renders street level photos from Mapillary.

San Francisco on Mapillary.com Frigilana on Mapillary.com

Using MapillaryJS

To use MapillaryJS you must create an account and obtain a Client ID. Then you can use MapillaryJS with a <script> tag.

<!DOCTYPE html>
<html>
<head>
    <script src='https://unpkg.com/mapillary-js@2.2.0/dist/mapillary.min.js'></script>
    <link href='https://unpkg.com/mapillary-js@2.2.0/dist/mapillary.min.css' rel='stylesheet' />
</head>

<body>
    <div id='mly' style='width: 640px; height: 480px;'></div>

    <script>
        var mly = new Mapillary.Viewer(
            'mly',
            '<your client id>',
            '<your photo id for initializing the viewer>'
        );
    </script>
</body>
</html>

Alternatively, you can npm install mapillary-js to use it with module loader or bundler of your choice.

Refer to the Examples and Documentation sections below for more information.

Examples

Documentation

Changelog

Every release is described on the GitHub Releases page.

License

MIT License

Contributing to MapillaryJS

See CONTRIBUTING.md.

Migrating from MapillaryJS 1 to 2

See MIGRATING.md.