Skip to content

Commit e071d65

Browse files
committed
Change getter name
1 parent 9fea3ac commit e071d65

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/OSFramework/Maps/OSMap/AbstractMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace OSFramework.Maps.OSMap {
108108
return this._providerType;
109109
}
110110

111-
public get respectUserPosition(): boolean {
111+
public get shouldRespectUserPosition(): boolean {
112112
return !!this.config.respectUserPosition && this._positionChanged;
113113
}
114114

src/Providers/Maps/Google/OSMap/OSMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ namespace Provider.Maps.Google.OSMap {
472472

473473
// If the user has dragged the map and the developer intends to respect user position
474474
// then the current map center will be used.
475-
if (this.respectUserPosition) {
475+
if (this.shouldRespectUserPosition) {
476476
position = this.provider.getCenter()?.toJSON() ?? position;
477477
} else {
478478
// If there are markers, let's choose the map center accordingly.

src/Providers/Maps/Leaflet/OSMap/OSMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ namespace Provider.Maps.Leaflet.OSMap {
286286

287287
//If the user has dragged the map and the developer intends to respect user position
288288
//then the current map center will be used.
289-
if (this.respectUserPosition) {
289+
if (this.shouldRespectUserPosition) {
290290
position = this.provider.getCenter() ?? position;
291291
} else {
292292
//If there are markers, let's choose the map center accordingly.

0 commit comments

Comments
 (0)