WebGL JavaScript library for displaying street level photos from Mapillary
**ATTENTION! This is a beta release
Include via HTML tags:
<link rel="stylesheet" href="https://npmcdn.com/mapillary-js@0.0.5/dist/mapillary-js.min.css">
<script src="https://npmcdn.com/mapillary-js@0.0.5/dist/mapillary-js.min.js"></script>
Make sure to check out Examples section below or API Documentation for more information.
Alternatively, you can npm install mapillary-js to use it with module loader/bundler of your choice.
Every release is described on the GitHub Releases page.
MIT License
Next node in the sequence
Panorama in general direction
Previous node in the sequence
Rotate with small counter clockwise angle change
Rotate with small clockwise angle change
Step backward keeping viewing direction
Step forward keeping viewing direction
Step to the left keeping viewing direction
Step to the right keeping viewing direction
Turn 90 degrees counter clockwise
Turn 90 degrees clockwise
Turn 180 degrees
Enumeration for image sizes
1024 pixels image size
2048 pixels image size
320 pixels image size
640 pixels image size
Create a new viewer instance
required id of an DOM element which will be transformed into the viewer
required Mapillary API ClientID, can be obtained from http://www.mapillary.com/map/settings/integrations
optional photoId to start from, can be any Mapillary photo, if null no image is loaded
optional configuration object specifing Viewer's initial setup
Subscribe to an event by its name
Fired when the viewer is loading more data
Fired every time the viewer goes to a new node (photo)
Private ComponentController object which manages component states
Private Container object which maintains the DOM Element, renderers and relevant services
Private EventLauncher object which fires events on behalf of the viewer
Private Navigator object which controls navigation throught the vast seas of Mapillary
Activate a Component
Name of the component which will become active
Activate the Cover (deactivates all other components)
Deactivate a Component
Name of component which become inactive
Deactivate the Cover (activates all components marked as active)
Get a Component
Name of component
Move close to given latitude and longitude
Latitude
Longitude
Move in a given direction
This method has to be called through EdgeDirection enumeration as in the example.
Direction towards which to move
Navigate to a given photo key
a valid Mapillary photo key
Show attribution
Default size of the thumbnail used in the viewer
Cache images ahead.
Use a cover and avoid loading initial data from Mapillary.
Show debug interface.
Show direction arrows for navigation.
Show static images without transitions.
Show image planes in 3D using WebGL.
Enable use of keyboard commands.
Show indication of loading.
The max size of an image shown in the viewer will be used when user pauses.
Enable mouse interface (needed for panorama navigation)
Show static navigation arrows in the corners.
Add play ability to the viewer.
Generated using TypeDoc
Enumeration for edge directions
{number}
Directions for edges in node graph describing sequence, spatial and node type relations between nodes.