Hi there!
I made a basic example of a top-down map with panning and zooming.
It's on my blog:
https://im-a-ctjs-gamedev.netlify.app/pan-and-zoom-map
You can download the source on itchio:
https://atavismus.itch.io/pan-and-zoom-map
I hope that it will be useful to some of you and maybe give you some ideas.
Take care all! ; )