Not possible to add tags when viewer move promises resolve
@oscarlorentzon is already working on this.
Since Aug 2, 2018.
Assessment
This issue has not been assessed yet.
Description
Basic information
MapillaryJS version: 2.6.0
System/Browser: All
Steps to Reproduce Behavior
- Create a new viewer and activate the tag component
var viewer = new Mapillary.Viewer(..., '<original-image-key>');
viewer.activateComponent('tag');
var tagComponent = viewer.getComponent('tag');
- Move to a new key at a later point in time and set a tag related to the new image key
viewer.moveToKey('<tag-image-key>')
.then(
function(node) {
var tag = new Mapillary.TagComponent.OutlineTag(...);
tagComponent.add(tag);
});
Expected behavior
The tag is rendered correctly according to its geometry coordinates.
Actual behavior
The tag position will be related to the original-image-key and rendered incorrectly.
Additional information
To be able to render tags correctly, one has to use the Mapillary.Viewer.nodechanged event and add the tags related to a certain image key after that event has fired for that particular key.
- Dominant language
- TypeScript
- Stars
- 516
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapillary/mapillary-js
-
Missing tooltips Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapillary/mapillary-js#639 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapillary/mapillary-js#638 ·
-
Transition mode Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapillary/mapillary-js#633 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapillary/mapillary-js#623 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapillary/mapillary-js#618 ·
All issues in mapillary/mapillary-js
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·