Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapillary-js viewer #698

Closed
wants to merge 24 commits into from
Closed

mapillary-js viewer #698

wants to merge 24 commits into from

Conversation

oscarlorentzon
Copy link
Member

@oscarlorentzon oscarlorentzon commented Jan 20, 2021

This PR adds a viewer using mapillary-js. By using mapillary-js the client code can take advantage of new features automatically in the future.

The diff consists of:

  • Shell script to download dependency files for mapillary-js, gl-matrix, and dat.gui.
  • OpenSfM data provider JS implementation for retrieving and converting OpenSfM data.
  • HTML file with viewer markup and styles.
  • OpenSfM JS file with logic handling initialization and options

Copy link
Member

@paulinus paulinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking forward to using MapillaryJS as viewer. Thanks @oscarlorentzon !

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulinus has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add OpenSfM data provider for fetching data.
Configuration through dat.gui and key bindings.
Fetch viewer dependencies with shell script.
Add UI for selecting reconstruction files.
Handle non existing images folder by creating
and returning a fallback buffer.
Make separation of concerns clearer by
creating classes.
Add namespace to CSS classes to avoid conflicts.
Make it possible to load multiple reconstruction files on
initial load.
Succeed if at least one of the files could be loaded.
Parse single file or comma separated files and load
all of them.
Succeed if at least one file can be fetched.
Separate thumbnail controller logic from
info controller.
Rename cancellation error.
Handle config changes in viewer class.
Emit changes from key and dat controllers.
Move all reusable classes and functions to
opensfm-viewer.js file.
Move popup logic to separate class to
reuse in key commands explainer and
copier.
Set z-index to ensure popup always on top.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulinus has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulinus has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oscarlorentzon has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@oscarlorentzon merged this pull request in 7089ae0.

@oscarlorentzon oscarlorentzon deleted the feature-mjs-viewer branch February 25, 2021 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants