Please check attached image – it’s divided into 3 parts
1) Add annotation
I have added annotation “1” on an object 1 which displays “test” on clicking. I have given poi_1 as id to make the event work.
2) On event click
Here I have a click event fo id poi_1 (set above) which call tween camera action
3) On event click (to on/off annotation display)
Here I have logic for displaying annotation through a button in main UI
Now the issue is when I load the page, first-time camera tween works perfectly but once I use the button in UI to off annotation, and then again use it to On annotation display and then try to click on annotation(running 2 again) camera tween does not work.