Skip to content

Commit 2ee9fd6

Browse files
chore: Comment typos and clarification
Co-authored-by: jmacura <[email protected]>
1 parent f8dc0ce commit 2ee9fd6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

projects/hslayers/shared/add-data/url/wfs.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export class HsUrlWfsService implements HsUrlTypeServiceModel {
475475
*/
476476
getLayer(layer, options: LayerOptions): Layer<Source> {
477477
const url = this.hsWfsGetCapabilitiesService.service_url.split('?')[0];
478-
const manyFeatures = layer.featureCount ? layer.featureCount > 5000 : true; //A lot of features or not set
478+
const manyFeatures = layer.featureCount ? layer.featureCount > 5000 : true; //A lot of features or unknown number
479479
const layerExtent = manyFeatures
480480
? this.getLayerExtent(layer, options.crs)
481481
: undefined;

projects/hslayers/shared/layer-manager/layer-manager.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import {
6161
setOrigLayers,
6262
setPath,
6363
} from 'hslayers-ng/common/extensions';
64-
import {Subject, buffer, bufferTime, debounceTime, pairwise} from 'rxjs';
64+
import {Subject, buffer, debounceTime, pairwise} from 'rxjs';
6565

6666
export class HsLayermanagerDataObject {
6767
folders: any;
@@ -799,7 +799,7 @@ export class HsLayerManagerService {
799799
loadProgress.timer = new Subject();
800800
/**
801801
* NOTE:
802-
* pairwise is a hacky solution for a cases when pending numbers get out of sync
802+
* pairwise is a hacky solution for the cases when pending numbers get out of sync
803803
* eg. everything has been loaded but pending value is not 0.
804804
* Could not find the root cause of the problem
805805
*/
@@ -838,7 +838,7 @@ export class HsLayerManagerService {
838838
.pipe(
839839
//Buffer emitions to an array until closing notifier emits.
840840
buffer(
841-
// In case 250ms seconds has passed without another emit => close buffer and emit value
841+
// In case 100ms has passed without another emit => close buffer and emit value
842842
subject.pipe(debounceTime(100)),
843843
),
844844
)
@@ -871,7 +871,7 @@ export class HsLayerManagerService {
871871
);
872872
}
873873
/**
874-
* Total is reseted only after 2 seconds of idle state.
874+
* Total is reset only after 2 seconds of idle state.
875875
* Panning sooner will make a progress bar UI animation to jump or 'backpaddle' unnecessarily.
876876
* Using 0 instead of 100 (when loading ended) prevents that
877877
*/

0 commit comments

Comments
 (0)