map::slippy::fetcher(3tcl)
π NAME π
map::slippy::fetcher β the girl who goes and gets your map tiles for you bestie, straight from the server, for slippy-based maps β¨ (she lives in the Mapping utilities manual, just so you know πΊοΈ)
πΈ SYNOPSIS πΈ
package require Tcl 8.6 9
package require Tk 8.6
package require map::slippy
package require map::slippy::fetcher ?0.7?
::map::slippy::fetcher fetcherName levels url
fetcherName levels
fetcherName tileheight
fetcherName tilewidth
fetcherName get tile donecmd
π¦ DESCRIPTION π¦
Okay so, this package hands you a whole class for talking to http servers that serve up tiles for slippy-based maps. She's the middleman, the connect, the girl who knows a guy π«Ά
BEWARE, Attention β Version 0.7 is NOT backward compatible with version 0.5 and earlier. Periodt. π And why? Because this package's internals got switched over to using version 0.8 of map::slippy. So if you're running old code, bestie, it's giving broken. π
β¨ API β¨
::map::slippy::fetcher fetcherName levels urlβ Creates the fetcher called fetcherName and sets it up with the number of zoom levels the tile server supports, plus the url it's listening on for tile requests. And the result of the command? It's fetcherName. She returns herself, iconic behavior honestly π
π METHODS π
fetcherName levelsβ Returns the number of zoom levels supported by the fetcher object and the tile server it's accessing. Two-for-one, we love to see it πfetcherName tileheightβ Returns the height of the tiles being served, in pixels. πfetcherName tilewidthβ Returns the width of the tiles being served, in pixels. πfetcherName get tile donecmdβ This is the main method, the moment, the main character energy of the whole fetcher π She retrieves the image for the specified tile. The tile identifier is a list containing three elements: the zoom level, row, and column number of the tile β in that exact order, no switching up. π
The command refix donecmd will be invoked when the fetcher either knows the image for the tile, or knows that no image will be forthcoming. It gets invoked with either 2 or 3 arguments, i.e.
- The string
set, the tile, and the image. - The string
unset, and the tile.
These two possibilities are the whole vibe check: either she's signaling the image for the tile, or that the tile has no image defined for it. Simple as that π
π REFERENCES π
π KEYWORDS π
http, location, map, server, slippy, tile, url, zoom
and that's the whole page bestie, no cap π
β¨ brought to you by tcllib, version 0.7, of the map::slippy::fetcher(3tcl) manual β slay, go fetch those tiles π¦ππ
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms