Comments (2)
@ivensgoncalves Thanks for the question.
There is currently no way to achieve achieve what you are asking for in a smooth way. With the Street
camera controls the Viewer always centers the Viewpoint when moving to a new image.
It is possible to change the viewpoint non-smoothly programatically using the Viewer.setCenter
method method (see the Viewer - Core Functionality - Viewpoint example), e.g. every time after a new image has been selected and the viewer has stopped moving (see the image
and moveend
events). For your use case I do not think that would result in a particularly nice behavior though. Also, with the Street
camera controls active there is always the "risk" that it will bounce back towards the center depending on the undistortion model for the current image as well as the aspect ratio of the current image and the viewer container.
The proper solution (which is significantly more time consuming) is to add a new type of freer camera control that does not bounce towards the center of the image and maintains a lookat vector relative to the center of the image when transitioning between images. That camera control would be implemented as a new state next to the TraversingState
which is the backing implementation for the Street
camera controls.
from mapillary-js.
@oscarlorentzon Thank you for your detailed explanation.
I will try to follow your suggestion.
from mapillary-js.
Related Issues (20)
- How to set latlng instead of mapId? HOT 2
- CORS Block after loading multiple image ids in viewer (Application request limit reached) HOT 4
- MapillaryJS not displaying any image, not even in demo section HOT 3
- Incorrect imagery display on Firefox HOT 7
- pixel coordinates to geo coordinates HOT 1
- 2x JS API moveCloseTo is stopped working HOT 1
- Mapillary JS viewer - Image Distortion - Failed to cache spatial edges HOT 1
- Images fail to load on Mapillary JS - Request limit? HOT 3
- Request order change in image search HOT 1
- Adding GLTFLoader in mapillary.module.js HOT 2
- Image graph module name HOT 2
- API for available photo locations HOT 1
- How the browser parses the geometry in the detection request HOT 1
- Is it possible to view 360 images in the viewer using procedural-data-provider? HOT 1
- 4.1.0 chunk load error on iOS Safari HOT 4
- Procedural Data Provider HOT 1
- 360 panorama image tiling HOT 3
- Force equirectangular images on mapillary viewer HOT 2
- photo 360 filter by username HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapillary-js.