Show HN: An interactive map of Tolkien's Middle-earth (middle-earth-interactive-map.web.app)

by frasermarlow 70 comments 291 points
Read article View on HN

70 comments

[−] frasermarlow 37d ago
PS: There have been a few questions about the tiling system used. It's based on https://leafletjs.com/ and you will find it all in the Github repo. Its one of the more interesting parts of the project:

https://github.com/frasermarlow/middle-earth-map

The tiles were pre-generated from the source image using generate_tiles.py — a Python script that slices the big map into 256x256 JPEG tiles at three zoom levels . Leaflet loads them with zoomOffset: 2, so directory zoom 0 = Leaflet zoom -2, directory zoom 2 = Leaflet zoom 0 (the highest native zoom). Below and above that range, Leaflet scales tiles up or down automatically.

The satellite tiles were generated by generate_sat_ai.py using Stable Diffusion img2img. It assembles the zoom-2 tiles into a full image, processes 512x512 overlapping patches through SD, blends them back together, then slices into the tile pyramid.

[−] ComSubVie 37d ago
The generated satellite tiles are interesting. The sea is very dry. And some mountains are looking very strange. At least for some places (e.g. Mount Doom) the AI should have been able to generate more "realistic" images.

Interesting project. I might "steal" that for teaching purposes.

[−] frasermarlow 37d ago
Ha ha. Yeah. That was a first wild attempt. If I get time I will figure out how to fine tune the mock-satellite imagery to properly reflect ocean, lakes, trees, castles etc.
[−] Prime_Axiom 37d ago
This is pretty cool man, I appreciate you sharing what you did on GitHub. I’m just a codelet script kiddie crashing around the Google Maps api for fun and I love seeing projects like this.
[−] frasermarlow 37d ago
If you put in a credit card, look out, the Google maps API can get very expensive very quickly!
[−] aquir 37d ago
It's great but it's the Map of Middle-Earth in the Third Age, right? During the First and Second Ages Middle-Earth looked very different and this makes showing events from the Silmarillion for example very confusing.
[−] frasermarlow 37d ago
Yep, that is correct, well spotted. See the thread with blevinstein below on some more details related to that.
[−] xg15 37d ago
This is really cool!

Some nitpicks/ideas:

A few of the markers seem to be misplaced. I just noticed with the Cirith Ungol markers and Henneth Annûn, which are too far north and east compared to their location in the books (Cirith Ungol should be more or less directly above Minas Morgul; Henneth Annûn would be closer to the riverbank I think and in any case definitely not inside the mountain range)

There is also a bit of a mix of different semantics with the markers, I think. I see at least three different categories: Book plot lines, historical events and locations. The Hobbit and LotR markers seem to be mostly the first category, Silmarillion the second and Appendices the last (but not always). This makes sense, but is also a bit confusing, as a lot of locations only have book chapter or event descriptions, but no distinct description of the location itself. Some locations also have multiple markers if multiple things happened there.

I wonder if this could be structured a bit more, e.g. a marker for each location, with text subsections or "sub markers" for events and plotlines in that location.

Also, why the map looks good, I'd experiment with a few different ones (like the one from the books) that are more detailed. E.g. in this map, most of the roads are missing, which makes the markers for Tharbad or the Crossroads a bit awkward.

The crowning achievement would be of course to integrate Karen Wynn Fonstad's "high-resolution" maps from the atlas - but I imagine copyright makes that impossible.

The satellite view is a really cool idea, but, as others have said, doesn't reall work right now.

(I think this might be an interesting LLM benchmark: How well can a model generate a satellite view of middle earth that is both accurate to the map and to the descriptions in the books - e.g. not putting any vegetation into Gorgoroth, depicting the various ruined cities as ruins, etc)

But in any case, it's a really fun and well-designed project.

[−] frasermarlow 37d ago
Thanks for the thoughtful feedback. Yes, i literally threw the faux-satellite version together in response to suggestions on this thread. Plenty of room for improvement there! Thanks for the notes on marker positioning. Let me look into that. Each source map has its pros and cons, but Fonstad's canonical version would be ideal. Copyright could be an issue as you point out.
[−] topherjaynes 38d ago
One doesn't simply vibe code into Mordor!(but seriously love this)
[−] frasermarlow 37d ago
LOL
[−] ivolimmen 37d ago
The first thing that poped in my head when seeing this: it must have taken quite some time to thoroughly go thought all this to make it. The developer must have a huge passion for LOTR. Seeing all the message that it was build using AI it hugely deminishes this feeling. Still a very nice looking map.
[−] frasermarlow 37d ago
I totally get that. Sorry if it was a letdown. In reality I built this map as part of a personal exploration of the lore and background of Tolkien's lore, because i am fascinated by it. This felt like a productive way to share my learnings with others in a fun way. I certainly learnt a lot from going through the process.
[−] cheschire 37d ago
LLMs are a sum of their parts. Whatever feelings you had towards OP can still be given freely to the creators of the parts.
[−] starkparker 37d ago
LotrProject[1] has several interactive maps and visualizations, including a family tree, time/distance chart of the fellowship's journey, maps of Beleriand and Middle-Earth, historical timeline maps, and demographic posts on Middle-Earth's inhabitants. Sadly doesn't seem to have been maintained recently, the cracks in WordPress are starting to show, and AFAICT the source content isn't open.

http://lotrproject.com

[−] frasermarlow 37d ago
Thanks, I will check it out. Good news is, web hosting tech aside, the content should not go out of date!
[−] bananaflag 38d ago
I notice the map is the one from the movies (it shows the Orocarni a bit too close, but it's nice they appear on the map).

Maybe when describing historical events you should also put the year (it is given only for some of them).

Anyway, very nice work! I think it's appropriate especially for casual fans (especially movie fans) to delve (sorry) deeper into the lore.

[−] block_dagger 37d ago
Interactive is generous - more like labeled. Interesting but was expecting more.
[−] shdh 38d ago
Using a tile server for this feels hilarious