-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed redundant map settings in favour of LEAFLET_CONFIG #152
- Loading branch information
1 parent
fecbb3b
commit 8afeb8d
Showing
3 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from django.conf import settings | ||
# TODO: improve consistency | ||
from nodeshot.core.base.settings import ADMIN_MAP_COORDINATES as MAP_CENTER | ||
from leaflet import app_settings as LEAFLET_SETTINGS | ||
|
||
|
||
TILESERVER_URL = getattr(settings, 'NODESHOT_UI_TILESERVER_URL', 'http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png') | ||
MAP_ZOOM = getattr(settings, 'NODESHOT_FRONTEND_MAP_ZOOM', 4) | ||
TILESERVER_URL = LEAFLET_SETTINGS['TILES'][0][1] | ||
MAP_ZOOM = LEAFLET_SETTINGS['DEFAULT_ZOOM'] | ||
MAP_CENTER = LEAFLET_SETTINGS['DEFAULT_CENTER'] |