File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -321,10 +321,10 @@ export abstract class BaseMap extends Events implements BaseMapDefinition {
321
321
mapLayers : LayerGroup < L . TileLayer | L . ImageOverlay > [ ] = [ ] ;
322
322
get markerIcons ( ) : Map < string , MarkerIcon > {
323
323
return new Map (
324
- [ ... this . plugin . markerIcons , ... ( this . options . localMarkerTypes ?? [ ] ) ] . map ( ( markerIcon ) => [
325
- markerIcon . type ,
326
- markerIcon
327
- ] )
324
+ [
325
+ ... this . plugin . markerIcons ,
326
+ ... ( this . options . localMarkerTypes ?? [ ] )
327
+ ] . map ( ( markerIcon ) => [ markerIcon . type , markerIcon ] )
328
328
) ;
329
329
}
330
330
get markerTypes ( ) {
@@ -1481,10 +1481,9 @@ export class RealMap extends BaseMap {
1481
1481
1482
1482
this . log ( "Building initial map layer." ) ;
1483
1483
1484
- const tileServer =
1485
- this . plugin . app . vault . config . theme == "moonstone"
1486
- ? this . plugin . data . defaultTile
1487
- : this . plugin . data . defaultTileDark ;
1484
+ const tileServer = document . body . hasClass ( "theme-light" )
1485
+ ? this . plugin . data . defaultTile
1486
+ : this . plugin . data . defaultTileDark ;
1488
1487
1489
1488
let osmLayer = {
1490
1489
id : "real" ,
You can’t perform that action at this time.
0 commit comments