Use exif.js to extract full exif tags #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change involves the use of the exif.js library (https://github.com/jseidelin/exif-js) to pull out full EXIF data for the photosphere. The rationale for this is that it might be desirable to obtain the latitude and longitude where the photosphere is taken, for example for displaying the photospheres on the map. I also store the "PoseHeadingDegrees" GPano property in the exif object; this has applications including the possibility of linking photospheres to create virtual tours in which the user can navigate from one photosphere to the next, with direction arrows superimposed on the photosphere.
EDIT: just realised this breaks in IE. The xmlHTTP.overrideMimeType() is not supported in IE. I've modified my own branch to only use this if supported, but then IE breaks somewhere else, in the final callback() call, with some random system error. So it's best you don't pull this change in just yet.