Spec-Zone .ru
спецификации, руководства, описания, API
Spec-Zone .ru
спецификации, руководства, описания, API
Библиотека разработчика Mac Разработчик
Поиск

 

Эта страница руководства для  версии 10.9 Mac OS X

Если Вы выполняете различную версию  Mac OS X, просматриваете документацию локально:

Читать страницы руководства

Страницы руководства предназначаются как справочник для людей, уже понимающих технологию.

  • Чтобы изучить, как руководство организовано или узнать о синтаксисе команды, прочитайте страницу руководства для страниц справочника (5).

  • Для получения дополнительной информации об этой технологии, ищите другую документацию в Библиотеке Разработчика Apple.

  • Для получения общей информации о записи сценариев оболочки, считайте Shell, Пишущий сценарий Учебника для начинающих.



map::slippy::fetcher(n)                       Mapping utilities                      map::slippy::fetcher(n)



____________________________________________________________________________________________________________

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

SYNOPSIS
       package require Tcl  8.4

       package require Tk  8.4

       package require img::png

       package require map::slippy

       package require map::slippy::fetcher  ?0.2?

       ::map::slippy::fetcher fetcherName levels url

       fetcherName levels

       fetcherName tileheight

       fetcherName tilewidth

       fetcherName get tile donecmd

____________________________________________________________________________________________________________

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

API
       ::map::slippy::fetcher fetcherName levels url
              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.


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

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

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

       fetcherName get tile donecmd
              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.


REFERENCES
       [1]    http://wiki.openstreetmap.org/wiki/Main_Page


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



map                                                  0.2                             map::slippy::fetcher(n)

Сообщение о проблемах

Способ сообщить о проблеме с этой страницей руководства зависит от типа проблемы:

Ошибки содержания
Ошибки отчета в содержании этой документации со ссылками на отзыв ниже.
Отчеты об ошибках
Сообщите об ошибках в функциональности описанного инструмента или API через Генератор отчетов Ошибки.
Форматирование проблем
Отчет, форматирующий ошибки в интерактивной версии этих страниц со ссылками на отзыв ниже.