File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments