Skip to content

Commit

Permalink
set default tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jun 4, 2014
1 parent c2abf65 commit 2db2e41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions INSTALL/project_template/project_name/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@

'REVERSION_LAYERS': True, # activate django reversion for layers.Layer model
'REVERSION_NODES': True, # activate django reversion for nodes.Node model
'REVERSION_DEVICES': True, # activate django reversion for net.Devices model,
'TILESERVER_URL': '//otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png'
},
'CHOICES': {
'AVAILABLE_CRONJOBS': (
Expand Down
2 changes: 1 addition & 1 deletion nodeshot/ui/default/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
else:
WEBSOCKETS = False

TILESERVER_URL = settings.NODESHOT['SETTINGS'].get('TILESERVER_URL', '//a.tiles.mapbox.com/v3/nodeshot-cineca.i6kgg4hb/{z}/{x}/{y}.png')
TILESERVER_URL = settings.NODESHOT['SETTINGS'].get('TILESERVER_URL', '//otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png')
MAP_CENTER = json.dumps(settings.NODESHOT['SETTINGS'].get('ADMIN_MAP_COORDS'))
MAP_ZOOM = settings.NODESHOT['SETTINGS'].get('FRONTEND_MAP_ZOOM', 4)

Expand Down
2 changes: 1 addition & 1 deletion projects/ninux/ninux/settings.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
'REVERSION_NODES': True, # activate django reversion for nodes.Node model

# configure your tile server
'TILESERVER_URL': '//a.tiles.mapbox.com/v3/nodeshot-cineca.i6kgg4hb/{z}/{x}/{y}.png'
'TILESERVER_URL': '//otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png'
},
'CHOICES': {
'AVAILABLE_CRONJOBS': (
Expand Down

0 comments on commit 2db2e41

Please sign in to comment.