equal
deleted
inserted
replaced
115 |
115 |
116 image_info = image.info() |
116 image_info = image.info() |
117 |
117 |
118 map_config = dict( |
118 map_config = dict( |
119 tiles_url = self.tiles_url(name), |
119 tiles_url = self.tiles_url(name), |
120 |
120 tiles_mtime = image_info['cache_mtime'], |
121 tile_url = '{tiles_url}?x={x}&y={y}&zoom={z}', |
121 |
|
122 tile_url = '{tiles_url}?t={tiles_mtime}&x={x}&y={y}&zoom={z}', |
122 tile_size = pngtile.tile.TILE_SIZE, |
123 tile_size = pngtile.tile.TILE_SIZE, |
123 tile_zoom = pngtile.tile.MAX_ZOOM, |
124 tile_zoom = pngtile.tile.MAX_ZOOM, |
124 |
125 |
|
126 # do NOT include a mtime in these urls.. we should always revalidate them |
125 image_url = '{tiles_url}?w={w}&h={h}&x={x}&y={y}&zoom={z}', |
127 image_url = '{tiles_url}?w={w}&h={h}&x={x}&y={y}&zoom={z}', |
126 image_width = image_info['img_width'], |
128 image_width = image_info['img_width'], |
127 image_height = image_info['img_height'], |
129 image_height = image_info['img_height'], |
128 ) |
130 ) |
129 |
131 |