Quote:
Originally Posted by DRG
1 / It might be my computer and internet connection but does anyone else think it is slow to load ?
|
Define slow to load?
Slow to load when you enter the URL
https://generalstaff.org/maps/Webhola_V1.html
or slow to download the terrain elevation when you push (D/L ELEV)?
Quote:
|
2 / ( for Mark) First off WELL DONE!! VERY nice work.........
|
Don't thank me, thank two events:
A.) You found Tuomas' github repo at [
https://github.com/tvenhola/SPMBT-maps]. I was able to download the complete source and use that later on.
B.) Advancement in LLMs -- I was able to upload that github repo to Claude 4.6 Sonnet (best $20/mo I spent) and say:
"I would like to reverse engineer this program on github into something that can run locally in HTML5/JS using Leaflet to grab local height/elevation data and generate downloadable maps."
[I knew about Leaflet.js from a previous map based program I created]
This got back "something", which I was able to iteratively refine over several hours and several prompts, plus prior knowledge.
For example, I was able to "embed" the blank file "spmap999.src" needed by the Venhola Code as a Base64 text string within the HTML file (it's why it's so huge at 400+ KB), due to knowing about CORS, etc issues from previous work on browser-based programming.
Quote:
|
Is it possible to generate different sized ( smaller ) maps? It is possible I have missed something
|
I'll look into it for a future attempt; but here's a current work around using the Extended Map Editor:
1.) Generate full size 200x160 hex map using Webhola; download, load up in extended map editor and strip the contours (and apply water [SHIFT + "] if you need to).
2.) Push the SNAPSHOT button to save a copy of the map into memory in case you mess it up.
3.) Push the Z button to bring up the Cut and Paste menu.
4.) Select the UPPER LEFT area of the map area you want to copy and push MARK.
5.) Set the LOWER RIGHT area of the map area you want to copy and push SET.
6.) The area you copy should be shaded now.
7.) Push the COPY button.
8.) [Q] or RED UP ARROW to quit the map editor.
9.) Go into Preferences and adjust map size to what you want.
10. Go back into the map editor.
11. Push PASTE button; and paste the area you've got in memory into the new, smaller map's upper left corner.
12. Adjust map size as necessary to fit your pasted area.
Yes; it's ugly, it's crude, but it's what works [for now].