logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

map::slippy::fetcher - Accessing a server providing tiles for slippy-based maps

Api

::map::slippy::fetcherfetcherNamelevelsurl
              Creates the fetcher fetcherName and configures it with the number of zoom levels supported by  the
              tile server, and the url it is listening on for tile requests.

              The result of the command is fetcherName.

   METHODSfetcherNamelevels
              This method returns the number of zoom levels supported by the fetcher object, and the tile server
              it is accessing.

       fetcherNametileheight
              This method returns the height of tiles served, in pixels.

       fetcherNametilewidth
              This method returns the width of tiles served, in pixels.

       fetcherNamegettiledonecmd
              This  is  the  main  method  of the fetcher, retrieving 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 this order.

              The  command refix donecmd will be invoked when the fetcher either knows the image for the tile or
              that no image will forthcoming.  It will be invoked with either 2 or 3 arguments, i.e.

              [1]    The string set, the tile, and the image.

              [2]    The string unset, and the tile.

              These two possibilities are used to either signal the image for the tile, or that the tile has  no
              image defined for it.

Description

       This package provides a class for accessing http servers providing tiles for slippy-based maps.

       BEWARE,  Attention  Version  0.7  is NOTbackwardcompatible with version 0.5 and earlier. This is due to
       switching this package's internals to the use of version 0.8 of map::slippy.

Keywords

       http, location, map, server, slippy, tile, url, zoom

tcllib                                                 0.7                            map::slippy::fetcher(3tcl)

Name

       map::slippy::fetcher - Accessing a server providing tiles for slippy-based maps

References

Synopsis

       package require Tcl8.69

       package require Tk8.6

       package require map::slippy

       package require map::slippy::fetcher?0.7?::map::slippy::fetcherfetcherNamelevelsurlfetcherNamelevelsfetcherNametileheightfetcherNametilewidthfetcherNamegettiledonecmd

________________________________________________________________________________________________________________

See Also