comparison map.js @ 11:389cf726303e

mode=1, and add download.php
author nylin@mpiwg-berlin.mpg.de
date Tue, 27 Oct 2015 15:05:07 +0100
parents 8f5635197895
children f17f43f0a63f
comparison
equal deleted inserted replaced
10:8f5635197895 11:389cf726303e
92 type:'XYZ', 92 type:'XYZ',
93 attribution: "© NTU CSIE 303 Lab, <a href='http://archimedes.csie.ntu.edu.tw/lab_web1/'>NTU CSIE 303 Lab</a>" 93 attribution: "© NTU CSIE 303 Lab, <a href='http://archimedes.csie.ntu.edu.tw/lab_web1/'>NTU CSIE 303 Lab</a>"
94 }*/ 94 }*/
95 ]; 95 ];
96 //mpgiwg layers 96 //mpgiwg layers
97 if (client_ip.substring(0,10)=="141.14.238") { 97 if (client_ip.substring(0,9)=="141.14.23") {
98 backgroundMapArray.push( 98 backgroundMapArray.push(
99 { 99 {
100 100
101 name: '陳正祥–蝗神廟之分佈', 101 name: '陳正祥–蝗神廟之分佈',
102 url: 't/pa-cha/${z}/${x}/${y}.png', 102 url: 't/pa-cha/${z}/${x}/${y}.png',
425 pieChart=new WidgetWrapper(); 425 pieChart=new WidgetWrapper();
426 var pieChartWidget=new PieChartWidget(pieChart,pieChartElem); 426 var pieChartWidget=new PieChartWidget(pieChart,pieChartElem);
427 //pieChartWidget.addPieChart(0,"place"); 427 //pieChartWidget.addPieChart(0,"place");
428 } 428 }
429 function initToolbar(){ 429 function initToolbar(){
430 var mode=-1; 430 var mode=1;
431 if(urlParameter['mode']!=undefined) 431 if(urlParameter['mode']!=undefined)
432 mode=urlParameter['mode']; 432 mode=urlParameter['mode'];
433 if(mode==1){//locate the overlay selector on the map toolbar 433 if(mode==1){//locate the overlay selector on the map toolbar
434 $("#overlayIcon").hide(); 434 $("#overlayIcon").hide();
435 var overlayContainerObj=$("#overlayContainer"); 435 var overlayContainerObj=$("#overlayContainer");