Skip to content

Commit

Permalink
Allow initializion of map width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
bkg committed Jan 12, 2017
1 parent e33b8a3 commit 604773c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spillway/carto.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def build_map(querysets, tileform):
class Map(object):
mapfile = default_storage.path('map.xml')

def __init__(self):
m = mapnik.Map(256, 256)
def __init__(self, width=256, height=256):
m = mapnik.Map(width, height)
try:
mapnik.load_map(m, str(self.mapfile))
except RuntimeError:
Expand Down

0 comments on commit 604773c

Please sign in to comment.