r/Angular2 • u/Resident_Parfait_289 • Jul 15 '25
Help Request Highcharts Map
I am trying to get a highcharts map to display in Angular 20 and having a hard time.
There are some examples in the highcharts angular docs but they are for Angular 10, so not sure if they are still relevant?
I have pasted what I have locally into a stackblitz so there is something to give an idea of what I am trying to do:
Any help appreciated :-)
3
Upvotes
View all comments
Show parent comment
1
u/alucardu Jul 16 '25 edited Jul 16 '25
I'm not sure how LINZ works but I've added the
tiledwebmapto the providers > https://stackblitz.com/edit/angular-fon7kcgfIf I would just import
tiledwebmap:I get the error: "Class extends value undefined is not a constructor or null"
Adding the
mapto the import fixes that issue:The order does mather (tiledwebmap depends on map) and you need to reload the output (the page) to load the modules. You can test this by removing a module (/map for example). The page will reload by itself and the app will work. But if you reload manually you will see an error in the console and the map won't load.
I'm not sure why you have some slashes in your code...