aninggo / mapillary-js

WebGL & JavaScript library for displaying street level imagery from Mapillary

Home Page:https://mapillary.github.io/mapillary-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn workflow GitHub license npm version

MapillaryJS

MapillaryJS is a JavaScript & WebGL library that renders street level imagery 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 by registering an application.

You can use MapillaryJS as a <script> tag from a CDN, or as a mapillary-js package on npm.

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

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

    <script>
        var mly = new Mapillary.Viewer({
            apiClient: '<your client id>',
            container: 'mly',
            imageKey: '<your image key for initializing the viewer>',
        });
    </script>
</body>
</html>

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

Examples

Support

Viewer

Viewer and map

Components

Marker

Mouse

Keyboard

Popup

Route

Slider

Tag

Documentation

Migrating

Learn how to migrate between major MapillaryJS releases.

Contribute to MapillaryJS

Learn how to contribute.

Code of Conduct

Facebook has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.

License

MapillaryJS is MIT licensed.

About

WebGL & JavaScript library for displaying street level imagery from Mapillary

https://mapillary.github.io/mapillary-js

License:MIT License


Languages

Language:TypeScript 96.7%Language:CSS 1.6%Language:HTML 1.3%Language:GLSL 0.3%Language:JavaScript 0.1%Language:Shell 0.0%