File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -284,9 +284,9 @@ export class HTMLFeatureElement extends HTMLElement {
284
284
return this . nodeName !== prevSibling . nodeName ;
285
285
}
286
286
getPrevious ( ) {
287
- // Check if this is the first tile
287
+ // Check if this is the first element of a sequence
288
288
if ( this . isFirst ( ) ) {
289
- return null ; // No previous tile available
289
+ return null ; // No previous element available
290
290
}
291
291
292
292
// Since we know it's not the first, we can safely return the previous element sibling
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export class HTMLTileElement extends HTMLElement {
93
93
}
94
94
}
95
95
}
96
- isFirstTile ( ) {
96
+ isFirst ( ) {
97
97
// Get the previous element sibling
98
98
const prevSibling = this . previousElementSibling ;
99
99
@@ -105,13 +105,13 @@ export class HTMLTileElement extends HTMLElement {
105
105
// Compare the node names (tag names) - return true if they're different
106
106
return this . nodeName !== prevSibling . nodeName ;
107
107
}
108
- getPreviousTile ( ) {
109
- // Check if this is the first tile
110
- if ( this . isFirstTile ( ) ) {
111
- return null ; // No previous tile available
108
+ getPrevious ( ) {
109
+ // Check if this is the first element of a sequence
110
+ if ( this . isFirst ( ) ) {
111
+ return null ; // No previous element available
112
112
}
113
113
114
- // Since we know it's not the first tile , we can safely return the previous element sibling
114
+ // Since we know it's not the first, we can safely return the previous element sibling
115
115
return this . previousElementSibling ;
116
116
}
117
117
zoomTo ( ) {
@@ -160,7 +160,7 @@ export class HTMLTileElement extends HTMLElement {
160
160
}
161
161
}
162
162
_createOrGetTileLayer ( ) {
163
- if ( this . isFirstTile ( ) ) {
163
+ if ( this . isFirst ( ) ) {
164
164
const parentElement = this . _parentElement ;
165
165
166
166
// Create a new MapTileLayer
You can’t perform that action at this time.
0 commit comments