Created map_viewer.gd
For rendering openstreetmap, or any other tilemaps in godot.
Just for fun.
6 Likes
Very cool!
You might want to upload this to GitHub/GitLab/Codeberg (whatever you prefer) and maybe even submit it to the asset library?
1 Like
Hello folks,
is it possible to have the Godot project to run the script as in the video?
(I am newbie in Godot)
Thx
1 Like
What I did:
- Create a brand new project
- Add a new scene with the node
Control. - Attach to that node the script created by katolarsen.
- While in 2D, select the
Controland set the Anchor preset for the whole Rect. (I failed to do this the first time I tried; newbie speaking too)
In that way, the map will react to your mouse actions namely:
- the wheel will zoom-in/out.
- you will be able to drag the map by left-clicking and dragging the map.
I hope this helps
2 Likes
Is this code being maintained at some repository somewhere? Does it have a license defined for it?
If not, @katolarsen would you mind if I use this file as a starting point to make a plugin (MIT license)?
