Skip to content

Commit

Permalink
Re-enable thumbnails for layers. Fixes #351
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed Apr 26, 2018
1 parent f4ddf56 commit 5a8c785
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion geonode/contrib/worldmap/wm_extra/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from geonode.geoserver.helpers import create_gs_thumbnail_geonode
from geonode.layers.models import Layer

def create_wm_thumbnail(instance, overwrite=False):
"""
WorldMap doesn't use thumbnails from GeoServer, but just the ones from html.
"""
return None
# we use the standard way just for layers, not for maps
if isinstance(instance, Layer):
create_gs_thumbnail_geonode(instance)
else:
return None

0 comments on commit 5a8c785

Please sign in to comment.