GMAPTEMPLATE(1)

πŸ“¦
version 0.29 Β· 2 versions
, in fedora 43

πŸ’– GMAPTEMPLATE(1) πŸ’–

okay so this is gmaptemplate, and it lives in the User Contributed Perl Documentation corner of the manual, bestie. it's a little script that spits out an HTML template so you can look at your tiled images through the Google Map API. yes, that Google Map API. we're doing cartography with group-chat energy today. πŸ—ΊοΈβœ¨


✨ NAME ✨

gmaptemplate β€” HTML template for viewing tiled images with the Google Map API

like. that's the whole thing. that's the job. it makes HTML so your big tiled image behaves like a slippy map. iconic behaviour honestly. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

gmaptemplate > index.html

 Options:
  --title title      The content of the HTML <title> tag
  --prefix prefix    File prefix of tiles relative to root directory
  --apikey key       A Google Maps API key
  --centrelat deg    Latitude -90 to 90
  --centrelon deg    Longitude -180 to 180
  --initialzoom num  Start zoom level
  --maxzoom num      Maximum zoom level
  --maxzoomp1 num    Maximum zoom level +1
  --minres num       Minimum zoom level

so yeah, you literally just run it and redirect the output into index.html. the options go in there too, and here's the rundown on every single one of them because we do not skip flags in this house πŸ’…

  • --title title β€” sets what goes inside the HTML <title> tag. yes, the thing in the browser tab. give it a cute name, it deserves one. πŸŽ€
  • --prefix prefix β€” the file prefix of the tiles, relative to the root directory. this is where your tiles actually live, so get it right. πŸ—‚οΈ
  • --apikey key β€” a Google Maps API key. you're gonna need one of these, no cap. πŸ”‘
  • --centrelat deg β€” latitude, and it goes from -90 to 90. keep it in range bestie, don't be out here at latitude 400. 😭
  • --centrelon deg β€” longitude, from -180 to 180. same deal. 🌍
  • --initialzoom num β€” the start zoom level. where the map opens up at. the main character zoom. πŸ‘‘
  • --maxzoom num β€” the maximum zoom level. how far in it'll let you go. πŸ”
  • --maxzoomp1 num β€” maximum zoom level plus one. literally exactly that. do not ask me to do the math for you, it's in the name. ✨
  • --minres num β€” minimum zoom level. lowkey the floor of the whole zoom situation. ⭐

🌸 DESCRIPTION 🌸

gmaptemplate is a simple tool that writes a HTML file based on a template, and it comes from the Google Map Image Cutter tool:

http://www.casa.ucl.ac.uk/software/googlemapimagecutter.asp

that's the whole vibe. it's not trying to be fancy, it's trying to give you an HTML page and get out of your way. 🫢

Note: to use this HTML online you will need a Google Maps API key from http://code.google.com/apis/maps/

like, online online. if it's gonna be out there on the internet you need the key, periodt. πŸ”‘


πŸ‘‘ LICENSE πŸ‘‘

okay so legal bit, but listen, it matters:

The Google Map Image Cutter software and documentation is the property of CASA and University College London. The software is provided free under the terms of the GNU Lesser General Public License.

and then, the part we all need to read:

CASA and University College London do not accept any liability for any losses arising from the use of this software.

so like, it's free, it's LGPL, and nobody's coming to bail you out if it goes sideways. respect the license bestie. πŸ“œβœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

go look, it's right there. 🌈


πŸ’œ AUTHOR πŸ’œ

Bruno Postle β€” January 2010.


and that's the whole page, we ate and left no crumbs πŸ’… this was GMAPTEMPLATE(1) from perl v5.42.0, dated 2025-07-25, and honestly? iconic of it. bye bestie, go make a map πŸ—ΊοΈπŸŽ€βœ¨

πŸ“¦ where this page comes from