Skip to content

Commit

Permalink
Store tile x,y,z in view
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Mar 24, 2014
1 parent 50d5276 commit a584084
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions djgeojson/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def get_queryset(self):
"""
Inspired by Glen Roberton's django-geojson-tiles view
"""
x, y, z = map(int, self.args[:3])
nw = self.tile_coord(x, y, z)
se = self.tile_coord(x + 1, y + 1, z)
self.x, self.y, self.z = map(int, self.args[:3])
nw = self.tile_coord(self.x, self.y, self.z)
se = self.tile_coord(self.x + 1, self.y + 1, self.z)
bbox = Polygon((nw, (se[0], nw[1]),
se, (nw[0], se[1]), nw))
qs = super(TiledGeoJSONLayerView, self).get_queryset()
Expand Down

0 comments on commit a584084

Please sign in to comment.