Skip to content

Commit

Permalink
UI: map fixed #184
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Oct 3, 2014
1 parent c63ac95 commit d366101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions nodeshot/ui/default/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from django.conf import settings
from leaflet import app_settings as LEAFLET_SETTINGS


TILESERVER_URL = LEAFLET_SETTINGS['TILES'][0][1]
MAP_ZOOM = LEAFLET_SETTINGS['DEFAULT_ZOOM']
MAP_CENTER = LEAFLET_SETTINGS['DEFAULT_CENTER']
MAP_CENTER = list(LEAFLET_SETTINGS['DEFAULT_CENTER'])
5 changes: 1 addition & 4 deletions nodeshot/ui/default/views.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import simplejson as json

from django.conf import settings
from django.shortcuts import render

from nodeshot.core.nodes.models import Node, Status
from nodeshot.core.layers.models import Layer

from .settings import settings, TILESERVER_URL, MAP_CENTER, MAP_ZOOM
from .settings import TILESERVER_URL, MAP_CENTER, MAP_ZOOM

if 'nodeshot.core.websockets' in settings.INSTALLED_APPS:
from nodeshot.core.websockets import DOMAIN, PATH, PORT
Expand Down

0 comments on commit d366101

Please sign in to comment.