Skip to content

How to use the onLost and onFound hooks and get the position of the marker?  #4

@Zaniyar

Description

@Zaniyar

I see you log the messages:

lost {type: 'lost'} or
found {type: 'found', index: '0', matrixGL_RH: '[1.0426520743196028,0.13655717738457288,0.04756109…33636608,-74.88481076460363,-577.9151391163712,1]'}
how do I communicate to the worker?

Like this:
<NFTMarker onMarkerFound={()=>{console.log("found")}} onMarkerLost={()=>console.log('lost')} url={["../data/marker/pinball.fset", "../data/marker/pinball.fset3", "../data/marker/pinball.iset"]}>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions