Skip to content

Filters set before first node retrieved keep being set for every node change #258

@oscarlorentzon

Description

@oscarlorentzon

mapillary-js version: 2.1.0

Steps to Reproduce Behavior

  1. Create a viewer without specifying the key
  2. Set one or more filters
  3. Move to any node
  4. Clear the filter when the node has been set
  5. Navigate in the viewer
var viewer = new Mapillary.Viewer(
    "<container-id>",
    "<cliend_id>",
    null);

viewer.setFilter(["==", "fullPano", true]).then(function() { /*noop*/ });
viewer.moveToKey("<any-image-key>").then(
    function(n) { 
        viewer.setFilter(undefined).then(function() { /*noop*/ }); 
    },
    function(e) { console.error(e); });*/

Expected Behavior

No filter is applied to the graph after clearing the filter and navigating.

Actual Behavior

The initial filter is reapplied to the graph on each new node request when navigating.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions