qmsk/pngtile/pngtile.py
changeset 241 8456a554fab9
parent 238 2c62e4d70619
child 117 f18280afafd2
equal deleted inserted replaced
240:21a38c59ce78 241:8456a554fab9
    13 )
    13 )
    14 
    14 
    15 import os.path
    15 import os.path
    16 
    16 
    17 class Store (PNGTileStore):
    17 class Store (PNGTileStore):
       
    18     TILE_SIZE = 256
       
    19     TILE_ZOOM = 4
       
    20 
    18     def __init__ (self, title, tileserver, **opts):
    21     def __init__ (self, title, tileserver, **opts):
    19         super(Store, self).__init__(**opts)
    22         super(Store, self).__init__(**opts)
    20         
    23         
    21         self._title = title
    24         self._title = title
    22         self.tileserver = tileserver
    25         self.tileserver = tileserver
    87                 item_name = item
    90                 item_name = item
    88 
    91 
    89             if type:
    92             if type:
    90                 yield item, item_name
    93                 yield item, item_name
    91 
    94 
    92     def tiles_url (self, name, **query):
    95     def tiles_url (self, name=None, **query):
    93         """
    96         """
    94             Return a tileserver URL.
    97             Return a tileserver URL.
    95         """
    98         """
    96 
    99 
    97         url = self.tileserver
   100         url = self.tileserver