Skip to content

Commit

Permalink
fix thumbnails squashed
Browse files Browse the repository at this point in the history
  • Loading branch information
boney-bun committed Feb 20, 2018
1 parent aa5509a commit c888292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geonode/qgis_server/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def thumbnail_url(bbox, layers, qgis_project, style=None, internal=True):

x_min, y_min, x_max, y_max = bbox
# We calculate the margins according to 10 percent.
percent = 10
percent = 5
delta_x = (x_max - x_min) / 100 * percent
delta_x = math.fabs(delta_x)
delta_y = (y_max - y_min) / 100 * percent
Expand All @@ -400,8 +400,8 @@ def thumbnail_url(bbox, layers, qgis_project, style=None, internal=True):
'REQUEST': 'GetMap',
'BBOX': bbox,
'SRS': 'EPSG:4326',
'WIDTH': '250',
'HEIGHT': '250',
'WIDTH': '240',
'HEIGHT': '180',
'MAP': qgis_project,
'LAYERS': layers,
'STYLE': style,
Expand Down

0 comments on commit c888292

Please sign in to comment.