Skip to content
This repository was archived by the owner on Jun 1, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wbc/core/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def settings(request):
'site_title': django_settings.SITE_TITLE,
'site_url': django_settings.SITE_URL,
'tiles_url': django_settings.TILES_URL,
'tiles_url_opt': django_settings.TILES_URL_OPT,
'tiles_opt': django_settings.TILES_OPT,
'default_view': django_settings.DEFAULT_VIEW,
'facebook_apikey': facebookapikey
Expand Down
4 changes: 2 additions & 2 deletions wbc/core/static/adminmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function drawMap(){

// add the map layer
map = new L.Map("adminmap");
map.addLayer(new L.TileLayer(_tiles_url + '/{z}/{x}/{y}.png',_tiles_opt));
map.addLayer(new L.TileLayer(_tiles_url + '/{z}/{x}/{y}.png' + _tiles_url_opt,_tiles_opt));

// get lat and lon from the form fields
var lat, lon;
Expand Down Expand Up @@ -103,4 +103,4 @@ function drawMap(){

$(document).ready(function() {
setTimeout('drawMap()',100);
});
});
4 changes: 2 additions & 2 deletions wbc/core/static/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ app.factory('MapService',['$http',function($http) {
'scrollWheelZoom': false
});

map.addLayer(new L.TileLayer(_tiles_url + '/{z}/{x}/{y}.png',_tiles_opt));
map.addLayer(new L.TileLayer(_tiles_url + '/{z}/{x}/{y}.png' + _tiles_url_opt,_tiles_opt));
map.setView(new L.LatLng(_default_view.lat,_default_view.lon),_default_view.zoom);

var markerLayer = L.layerGroup().addTo(map);
Expand Down Expand Up @@ -193,4 +193,4 @@ app.controller('MapController',['$scope','$document','$window','$timeout','$loca
$scope.showMap();
});

}]);
}]);
2 changes: 1 addition & 1 deletion wbc/core/static/placemap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function initMap() {
// add the map layer and center map
map = new L.Map("place-map",{scrollWheelZoom: false});
map.addLayer(new L.TileLayer(_tiles_url + '/{z}/{x}/{y}.png',_tiles_opt));
map.addLayer(new L.TileLayer(_tiles_url + '/{z}/{x}/{y}.png' + _tiles_url_opt,_tiles_opt));
map.setView(new L.LatLng(_lat, _lon), 15);

var osmb = new OSMBuildings(map).loadData();
Expand Down
1 change: 1 addition & 0 deletions wbc/core/templates/core/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<script type="text/javascript">
var _static_url = {% static '' %}
var _tiles_url = "{{tiles_url}}";
var _tiles_url_opt = "{{tiles_url_opt}}";
var _tiles_opt = {{tiles_opt|safe}};
var _default_view = {{default_view|safe}};
</script>
Expand Down
1 change: 1 addition & 0 deletions wbc/process/templates/process/admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script type="text/javascript">
var _static_url = '{% static '' %}';
var _tiles_url = "{{tiles_url}}";
var _tiles_url_opt = "{{tiles_url_opt}}";
var _tiles_opt = {{tiles_opt|safe}};
var _default_view = {{default_view|safe}};
</script>
Expand Down
1 change: 1 addition & 0 deletions wbc/process/templates/process/place.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<script type="text/javascript">
var _static_url = {% static '' %}
var _tiles_url = "{{tiles_url}}";
var _tiles_url_opt = "{{tiles_url_opt}}";
var _tiles_opt = {{tiles_opt|safe}};
var _default_view = {{default_view|safe}};

Expand Down
1 change: 1 addition & 0 deletions wbc/process/templates/process/place_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<script type="text/javascript">
var _static_url = '{% static '' %}';
var _tiles_url = "{{tiles_url}}";
var _tiles_url_opt = "{{tiles_url_opt}}";
var _tiles_opt = {{tiles_opt|safe}};
var _default_view = {{default_view|safe}};
</script>
Expand Down