geojson
This commit is contained in:
@ -195,6 +195,7 @@ function downloadQGISFile(product)
|
||||
if(product=='frmlocust')
|
||||
{
|
||||
let country_id='';
|
||||
let region_id='';
|
||||
let locust_type_id='';
|
||||
let date_start='';
|
||||
let date_end='';
|
||||
@ -204,6 +205,8 @@ function downloadQGISFile(product)
|
||||
let input = null;
|
||||
input = document.getElementById('filter_X1_country_id');
|
||||
if(input!=null) country_id=input.value;
|
||||
input = document.getElementById('filter_X1_region_id');
|
||||
if(input!=null) region_id=input.value;
|
||||
input = document.getElementById('filter_X1_locust_type_id');
|
||||
if(input!=null) locust_type_id=input.value;
|
||||
input = document.getElementById('filter_X1_date_start');
|
||||
@ -217,15 +220,15 @@ function downloadQGISFile(product)
|
||||
|
||||
let url='';
|
||||
if(indicator==1)
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_pods_density&country_id='+country_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_pods_density&country_id='+country_id+'®ion_id='+region_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
if(indicator==2)
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_hoppers_density&country_id='+country_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_hoppers_density&country_id='+country_id+'®ion_id='+region_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
if(indicator==3)
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_bands&country_id='+country_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_bands&country_id='+country_id+'®ion_id='+region_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
if(indicator==4)
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_adults_density&country_id='+country_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_adults_density&country_id='+country_id+'®ion_id='+region_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
if(indicator==5)
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_swarms&country_id='+country_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
url='/api/locust/v01/QGIS?name=frmlocust_swarms&country_id='+country_id+'®ion_id='+region_id+'&locust_type_id='+locust_type_id+'&date_start='+date_start+'&date_end='+date_end+'®istered='+registered+'';
|
||||
|
||||
window.open(url,'_blank');
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
<script type="text/javascript" src="../resources/metadata/tree/tree.js?v=16"></script>
|
||||
|
||||
<script type="text/javascript" src="../resources/engine/popup.js?v=16"></script>
|
||||
<script type="text/javascript" src="../resources/engine/index.js?v=24"></script>
|
||||
<script type="text/javascript" src="../resources/engine/index.js?v=25"></script>
|
||||
<script type="text/javascript" src="../resources/engine/user.js?v=18"></script>
|
||||
|
||||
<style>
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<link rel="stylesheet" href="./resources/engine/index.css?v=8">
|
||||
|
||||
<script type="text/javascript" src="./resources/engine/popup.js?v=04"></script>
|
||||
<script type="text/javascript" src="./resources/index.js?v=03"></script>
|
||||
<script type="text/javascript" src="./resources/index.js?v=04"></script>
|
||||
|
||||
<link rel="stylesheet" href="./resources/engine/openlayers/ol.css" type="text/css">
|
||||
<link rel="stylesheet" href="./resources/engine/openlayers/ol-ext.css" />
|
||||
|
||||
Reference in New Issue
Block a user