Skip to content

Commit

Permalink
separate lights and photo
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Nov 14, 2023
1 parent f5970e6 commit 79a0a69
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions map.view.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@
margin-left: auto;
padding: var(--mol_gap_block);
}

[hyoo_map_tiles_tile] {
filter: var(--mol_theme_image);
}

[hyoo_map_photo] {
[hyoo_map_tiles_tile] {
filter: none;
}
}
3 changes: 2 additions & 1 deletion map.view.tree
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$hyoo_map $mol_view
attr *
mol_theme <= theme \$mol_theme_light
hyoo_map_photo <= photo? false
tiles_options *
sketch \https://basemaps.cartocdn.com/rastertiles/voyager/{level}/{x}/{y}.png
photo \https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{level}/{y}/{x}
Expand All @@ -12,6 +12,7 @@ $hyoo_map $mol_view
<= Search $mol_search
query?val <=> query?val \
submit?event <=> search?event null
<= Lights $mol_lights_toggle
<= Photo $mol_check_icon
hint @ \Real Photos
checked?val <=> photo?val false
Expand Down
7 changes: 4 additions & 3 deletions map.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ namespace $.$$ {
return this.tiles_options()[ this.photo() ? 'photo' : 'sketch' ]
}

theme() {
return this.photo() ? '$mol_theme_dark' : '$mol_theme_light'
}
// theme() {
// if( this.photo() ) return '$mol_theme_dark'
// return this.$.$mol_lights() ? '$mol_theme_light' : '$mol_theme_dark'
// }

}
}

0 comments on commit 79a0a69

Please sign in to comment.