--- title: "Combination of onPoiClick and goToPoi moved to a wrong position" slug: "combination-of-onpoiclick-and-gotopoi-moved-to-a-wrong-position" description: "onPoiClick combined with goToPoi moves the NavVis IVION API viewpoint to the wrong POI position because no delay separates the two functions. Add a delay, for example 300ms, so the POI information loads first." tags: ["NavVis IVION Processing", "Troubleshooting"] updated: 2025-02-05T09:25:20Z published: 2025-02-05T09:25:20Z canonical: "knowledge.navvis.com/combination-of-onpoiclick-and-gotopoi-moved-to-a-wrong-position" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.navvis.com/llms.txt > Use this file to discover all available pages before exploring further. # Combination of onPoiClick and goToPoi moved to a wrong position ## Introduction ### Problem description When using the combination of `onPoiClick` and `goToPoi`, the viewpoint is moved incorrectly to the POI position. **Root cause** There is no delay implemented between the two functions, wait for the page to fully load the POI information. ### Scope This applies to NavVis IVION API. ## Troubleshooting procedure Set a delay between the two functions, like below (300ms set): ![](https://cdn.document360.io/bf174766-fa1a-4fe1-a4d7-b1db1e7cb996/Images/Documentation/combination-of-onpoiclick-and-gotopoi-moved-to-a-wrong-position-image-gn75ile7.png) Point Of Interest Application Programming Interface