Relative Content

Tag Archive for angularleaflet

Error with leaflet on angular 17 standalone app

I’m a recent angular user.
I’m trying to add a leaflet map to my project.
I saw that I had to use a service to avoid errors related to window.
I used the following example: https://github.com/NickToony/universal-starter-leaflet-example
I made my map.service.tst file like this