Skip to content

WebGL JavaScript library for displaying street level imagery from mapillary.com

License

Notifications You must be signed in to change notification settings

Caboosey/mapillary-js

 
 

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 then obtain a Client ID. Then you can use MapillaryJS with a <script> tag.

<!DOCTYPE html>
<html>
<head>
    <script src='https://npmcdn.com/[email protected]/dist/mapillary-js.min.js'></script>
    <link href='https://npmcdn.com/[email protected]/dist/mapillary-js.min.css' rel='stylesheet' />
</head>

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

    <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.

About

WebGL JavaScript library for displaying street level imagery from mapillary.com

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.1%
  • CSS 1.8%
  • HTML 1.7%
  • Other 0.4%