summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.py31
1 files changed, 24 insertions, 7 deletions
diff --git a/settings.py b/settings.py
index 0918e93..9fb6b0c 100644
--- a/settings.py
+++ b/settings.py
@@ -25,8 +25,6 @@ JQUERY_JS_URLS = ('/javascript/jquery/jquery.js',
JQUERY_CSS_URLS = ('/javascript/jquery-ui/css/smoothness/jquery-ui.css',
'/javascript/jquery-ui-themes/base/jquery.ui.all.css')
-OSM_CSS_URLS = ["http://www.openlayers.org/api/theme/default/style.css"]
-
GPSBABEL = '/usr/bin/gpsbabel'
GPSBABEL_OPTIONS = 'simplify,crosstrack,error=0.005k' # simplify with an
# error of 5 meters
@@ -219,6 +217,9 @@ INSTALLED_APPS += [
LOG_PATH = '/var/log/django/'
+CHIMERE_VIEW_RENDERER = 'openlayers' # 'openlayers' or 'leaflet'
+CHIMERE_EDIT_RENDERER = 'openlayers' # 'openlayers'
+
try:
from local_settings import *
except ImportError, e:
@@ -282,9 +283,25 @@ if 'CHIMERE_SHARE_NETWORKS' not in globals():
STATIC_URL + 'chimere/img/identica.png'),
)
-if 'OSM_JS_URLS' not in globals():
- global OSM_JS_URLS
- OSM_JS_URLS = [STATIC_URL + "openlayers/OpenLayers.js",
- STATIC_URL + "openlayers/SimplePanZoom.js",
- "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"]
+if 'MAP_JS_URLS' not in globals():
+ global MAP_JS_URLS
+ MAP_JS_URLS = {
+ 'openlayers':[
+ STATIC_URL + "openlayers/OpenLayers.js",
+ STATIC_URL + "openlayers/SimplePanZoom.js",
+ "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"],
+ 'leaflet':[
+ STATIC_URL + "leaflet/leaflet.js"
+ ]
+ }
+
+if 'MAP_CSS_URLS' not in globals():
+ global MAP_CSS_URLS
+ MAP_CSS_URLS = {
+ 'openlayers':["http://www.openlayers.org/api/theme/default/style.css"],
+ 'leaflet':[
+ STATIC_URL + "leaflet/leaflet.css",
+ STATIC_URL + "leaflet/leaflet.ie.css"
+ ]
+ }