GMAPTEMPLATE(1)
π 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 π
--titletitle β sets what goes inside the HTML<title>tag. yes, the thing in the browser tab. give it a cute name, it deserves one. π--prefixprefix β the file prefix of the tiles, relative to the root directory. this is where your tiles actually live, so get it right. ποΈ--apikeykey β a Google Maps API key. you're gonna need one of these, no cap. π--centrelatdeg β latitude, and it goes from-90to90. keep it in range bestie, don't be out here at latitude 400. π--centrelondeg β longitude, from-180to180. same deal. π--initialzoomnum β the start zoom level. where the map opens up at. the main character zoom. π--maxzoomnum β the maximum zoom level. how far in it'll let you go. π--maxzoomp1num β maximum zoom level plus one. literally exactly that. do not ask me to do the math for you, it's in the name. β¨--minresnum β 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
- fedora 43: perl-Panotools-Script 0.29-20.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms