fix query
This commit is contained in:
@@ -679,7 +679,7 @@ function county_archive_play(start,end) {
|
|||||||
geoJSONPoint.clearLayers();
|
geoJSONPoint.clearLayers();
|
||||||
geoJSONsvr.clearLayers();
|
geoJSONsvr.clearLayers();
|
||||||
//
|
//
|
||||||
$.getJSON(powerapi + `?archivepoint=t&start=${start}&end=${end}`, function(data3) {
|
$.getJSON(powerapi + `&archivepoint=t&start=${start}&end=${end}`, function(data3) {
|
||||||
var geojsonpoint = data3;
|
var geojsonpoint = data3;
|
||||||
geoJSONPoint.clearLayers();
|
geoJSONPoint.clearLayers();
|
||||||
geoJSONPoint.addData(geojsonpoint);
|
geoJSONPoint.addData(geojsonpoint);
|
||||||
@@ -704,7 +704,7 @@ function county_archive_play(start,end) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.getJSON(powerapi + `?countyarchive=t&start=${start}&end=${end}`, function(data) {
|
$.getJSON(powerapi + `&countyarchive=t&start=${start}&end=${end}`, function(data) {
|
||||||
var uniqueNames = [];
|
var uniqueNames = [];
|
||||||
for(i = 0; i< data.length; i++){
|
for(i = 0; i< data.length; i++){
|
||||||
if(uniqueNames.indexOf(data[i].time) === -1){
|
if(uniqueNames.indexOf(data[i].time) === -1){
|
||||||
|
|||||||
Reference in New Issue
Block a user