You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -777,6 +778,7 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
777
778
// unnecessary check, but added to make it clear that if you wanted to add extra functionality to "simple gesture" mode, then you should handle things differently.
778
779
// handle foreground or background selection
779
780
781
+
// only enable highlighting if brush forward, for more alignment with expected behavior
780
782
if(lIdx<rIdx){
781
783
// Defined from docs on Wt::KeyboardModifier
782
784
varkeyModifierMap={
@@ -2981,6 +2983,7 @@ D3TimeChart.prototype.compress = function (data, n) {
2981
2983
varHAS_OCCUPANCY_DATA=false;
2982
2984
varHAS_SOURCE_TYPE_DATA=false;
2983
2985
varHAS_START_TIME_DATA=false;
2986
+
varHAS_GPS_COORD_DATA=false;
2984
2987
2985
2988
// Add optional fields:
2986
2989
if(data.hasOwnProperty("neutronCounts")){
@@ -3006,6 +3009,11 @@ D3TimeChart.prototype.compress = function (data, n) {
3006
3009
HAS_START_TIME_DATA=true;
3007
3010
}
3008
3011
3012
+
if(data.hasOwnProperty("gpsCoordinates")){
3013
+
out.gpsCoordinates=[];
3014
+
HAS_GPS_COORD_DATA=true;
3015
+
}
3016
+
3009
3017
// iterate over array with window of size n
3010
3018
varlength=data.sampleNumbers.length;
3011
3019
@@ -3036,6 +3044,10 @@ D3TimeChart.prototype.compress = function (data, n) {
3036
3044
if(HAS_SOURCE_TYPE_DATA){
3037
3045
out.sourceTypes[outIdx]=data.sourceTypes[i];
3038
3046
}
3047
+
if(HAS_GPS_COORD_DATA){
3048
+
// use GPS coordinate at the start of the compressed interval
0 commit comments