1map::slippy::fetcher(n)        Mapping utilities       map::slippy::fetcher(n)
2
3
4
5______________________________________________________________________________
6

NAME

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

SYNOPSIS

12       package require Tcl  8.4
13
14       package require Tk  8.4
15
16       package require img::png
17
18       package require map::slippy
19
20       package require map::slippy::fetcher  ?0.4?
21
22       ::map::slippy::fetcher fetcherName levels url
23
24       fetcherName levels
25
26       fetcherName tileheight
27
28       fetcherName tilewidth
29
30       fetcherName get tile donecmd
31
32______________________________________________________________________________
33

DESCRIPTION

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

API

39       ::map::slippy::fetcher fetcherName levels url
40              Creates  the fetcher fetcherName and configures it with the num‐
41              ber of zoom levels supported by the tile server, and the url  it
42              is listening on for tile requests.
43
44              The result of the command is fetcherName.
45
46   METHODS
47       fetcherName levels
48              This  method  returns the number of zoom levels supported by the
49              fetcher object, and the tile server it is accessing.
50
51       fetcherName tileheight
52              This method returns the height of tiles served, in pixels.
53
54       fetcherName tilewidth
55              This method returns the width of tiles served, in pixels.
56
57       fetcherName get tile donecmd
58              This is the main method of the fetcher, retrieving the image for
59              the  specified  tile.  The  tile identifier is a list containing
60              three elements, the zoom level, row, and column  number  of  the
61              tile, in this order.
62
63              The  command  refix  donecmd  will  be  invoked when the fetcher
64              either knows the image for the tile or that no image will forth‐
65              coming.  It will be invoked with either 2 or 3 arguments, i.e.
66
67              [1]    The string set, the tile, and the image.
68
69              [2]    The string unset, and the tile.
70
71              These  two possibilities are used to either signal the image for
72              the tile, or that the tile has no image defined for it.
73

REFERENCES

75       [1]    http://wiki.openstreetmap.org/wiki/Main_Page
76

KEYWORDS

78       http, location, map, server, slippy, tile, url, zoom
79
80
81
82tcllib                                0.4              map::slippy::fetcher(n)
Impressum