Skip to content

Commit f87d8cb

Browse files
committed
Minor code tidying.
1 parent 953a070 commit f87d8cb

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/flatmap.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,13 @@ export class FlatMap
323323
*
324324
*/
325325
forceContextLoss()
326-
//=======================================
326+
//================
327327
{
328328
this.#contextLostCallback()
329329
}
330330

331-
#contextLostCallback(event = undefined)
332-
//=======================================
331+
#contextLostCallback(event=undefined)
332+
//===================================
333333
{
334334
// Clean up some of the resources after the GL context is lost
335335

@@ -356,7 +356,7 @@ export class FlatMap
356356
*
357357
*/
358358
forceContextRestore()
359-
//=======================================
359+
//===================
360360
{
361361
if (this.#contextLost) {
362362
this.#initialiseMap()
@@ -368,7 +368,7 @@ export class FlatMap
368368
*
369369
*/
370370
#initialiseMap()
371-
//=======================================
371+
//==============
372372
{
373373
// Set options for the map
374374

@@ -527,8 +527,8 @@ export class FlatMap
527527
*
528528
* @group Properties
529529
*/
530-
get has_flightpaths(): boolean
531-
//===================
530+
get hasFlightpaths(): boolean
531+
//===========================
532532
{
533533
return 'version' in this.#details
534534
&& this.#details.version >= MAP_MAKER_FLIGHTPATHS_VERSION
@@ -1125,7 +1125,7 @@ export class FlatMap
11251125
* @group Properties
11261126
*/
11271127
get contextLost(): Boolean
1128-
//===================================
1128+
//========================
11291129
{
11301130
return this.#contextLost
11311131
}
@@ -1493,7 +1493,7 @@ export class FlatMap
14931493
*
14941494
*/
14951495
enableSystem(systemId: string, enable=true)
1496-
//================================= ========
1496+
//=========================================
14971497
{
14981498
if (this.#userInteractions !== null) {
14991499
return this.#userInteractions.enableSystem(systemId, enable)

src/interactions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export class UserInteractions
302302
this.#map.addControl(new TaxonsControl(flatmap))
303303
}
304304

305-
if (flatmap.has_flightpaths) {
305+
if (flatmap.hasFlightpaths) {
306306
this.#map.addControl(new FlightPathControl(flatmap, !!flatmap.options.flightPaths))
307307
}
308308

@@ -565,7 +565,7 @@ export class UserInteractions
565565
*
566566
*/
567567
freeLayersResource()
568-
//=======================================
568+
//==================
569569
{
570570
this.#layerManager.freeDeckGLResource()
571571
}

src/layers/deckgl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class DeckGlOverlay
5757
}
5858

5959
finalise()
60-
//====================
60+
//========
6161
{
6262
this.#overlay.finalize()
6363
}

src/layers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ export class LayerManager
731731
}
732732

733733
freeDeckGLResource()
734-
//=======================================
734+
//==================
735735
{
736736
if (this.#deckGlOverlay) {
737737
this.#deckGlOverlay.finalise()

0 commit comments

Comments
 (0)