mapillary / mapillary-js

Interactive, extendable street imagery map experiences in the browser, powered by WebGL
https://mapillary.github.io/mapillary-js
MIT License
435 stars 83 forks source link

Force equirectangular images on mapillary viewer #595

Closed ivensgoncalves closed 1 year ago

ivensgoncalves commented 1 year ago

Basic information

MapillaryJS version: 4.1.1

Question

I have configured the mapillary viewer instance to only start with equirectangular images. But as user starts navigating the mapillary map, he/she might land in a perspective image at some point. Is there any option to "hide" directions arrows heading to perspective images? Or would I need to add a new type of freer camera control?

Thanks in advance.

oscarlorentzon commented 1 year ago

It is possible to apply a filter to ensure that only navigation arrows to certain image types are visible.

Check out the filtering guide and the camera types.

Specifically, use the following:

viewer.setFilter(['==', 'cameraType', 'spherical']);
ivensgoncalves commented 1 year ago

@oscarlorentzon Thank you!

Sorry I've missed that from the documentation.