def __init__(self, tile_path=os.path.join('/var/cache/hfos', instance), default_tile=None,
                 **kwargs):
        """

        :param tile_path: Caching directory structure target path
        :param default_tile: Used, when no tile can be cached
        :param kwargs:
        """
        super(MaptileService, self).__init__('MTS', **kwargs)
        self.worker = Worker(process=False, workers=2,
                             channel="tcworkers").register(self)

        self.cache_path = tile_path
        self.default_tile = default_tile
        self._tiles = []
def __init__ ( self , tile_path = os . path . join ( '/var/cache/hfos' , instance ) , default_tile = None , ** kwargs ) : super ( MaptileService , self ) . __init__ ( 'MTS' , ** kwargs ) self . worker = Worker ( process = False , workers = 2 , channel = "tcworkers" ) . register ( self ) self . cache_path = tile_path self . default_tile = default_tile self . _tiles = [ ]
:param tile_path: Caching directory structure target path
        :param default_tile: Used, when no tile can be cached
        :param kwargs: