I am trying to use a clickable SVG map to navigate to different pages.
Using the onclick event on the SVG areas works well and I can put a message to the console or give an alert(), for instance.
However, I don’t know how to reach a method on one of my TS classes. Directly trying something like MapsPage.gotoZone(2); fails because “MapsPage is not defined”.
Or maybe there is a more simple approach to accomplish this task. Any help will be greatly appreciated.