diff --git a/requirements.txt b/requirements.txt index b86b6f9..8c323b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ Django==2.2 gunicorn==20.0.4 pytz==2019.3 sqlparse==0.3.1 +django-filter==2.4.0 diff --git a/rxmap/rxmapp/static/js/viewmap.js b/rxmap/rxmapp/static/js/viewmap.js index 6fe0468..b2a5213 100644 --- a/rxmap/rxmapp/static/js/viewmap.js +++ b/rxmap/rxmapp/static/js/viewmap.js @@ -7,7 +7,7 @@ function viewMap () { L.tileLayer( 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' ).addTo(map) - $.getJSON('/api/rapporti/get', function (data) { + $.getJSON('/api/rapporti/get' + (new URL(document.URL).search), function (data) { for (var i in data.rapporti) { var p = data.rapporti[i] var marker = new RapportoMarker([p.lat, p.lng], { diff --git a/rxmap/rxmapp/templates/index.html b/rxmap/rxmapp/templates/index.html index 06d0ed2..cbf313a 100644 --- a/rxmap/rxmapp/templates/index.html +++ b/rxmap/rxmapp/templates/index.html @@ -16,8 +16,8 @@