Skip to content

Commit

Permalink
HOTFIX - Darkmode map tile (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: marcaufderheyde <[email protected]>
  • Loading branch information
marcaufderheyde and marcaufderheyde authored Aug 26, 2024
1 parent c2f256e commit 55e24ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/[locale]/(withoutheaderfooter)/clubs/clubs-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const OpenStreetMap = dynamic(

export default function ClubsContent() {
const [showHRFilter, setShowHRFilter] = useState(false);
const [isDarkMode, setIsDarkMode] = useState(true);
const [isDarkMode, setIsDarkMode] = useState(false);

return (
<div>
<Navbar isOnMap={true} />
<div>
<div className='hidden lg:flex'>
<div className="hidden lg:flex">
<OpenStreetMap
showHRInfo={showHRFilter}
isDesktopMap={true}
Expand All @@ -31,7 +31,7 @@ export default function ClubsContent() {
setShowHRFilter={setShowHRFilter}
/>
</div>
<div className='lg:hidden flex'>
<div className="lg:hidden flex">
<OpenStreetMap
showHRInfo={showHRFilter}
isDesktopMap={false}
Expand Down
2 changes: 1 addition & 1 deletion app/components/OpenStreetMap/ClubOpenStreetMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function ClubOpenStreetMap({ club }: ClubProps) {
>
<TileLayer
//url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
url="https://api.maptiler.com/maps/toner-v2/{z}/{x}/{y}.png?key=KFzeqoMZOcvot9qqW4I8"
url="https://api.maptiler.com/maps/darkmatter/{z}/{x}/{y}.png?key=KFzeqoMZOcvot9qqW4I8"
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
/>

Expand Down
2 changes: 1 addition & 1 deletion app/components/OpenStreetMap/OpenStreetMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export default function OpenStreetMap(props: OpenStreetMapProps) {
<TileLayer
url={
props.isDarkMode
? 'https://api.maptiler.com/maps/toner-v2/{z}/{x}/{y}.png?key=KFzeqoMZOcvot9qqW4I8'
? 'https://api.maptiler.com/maps/darkmatter/{z}/{x}/{y}.png?key=KFzeqoMZOcvot9qqW4I8'
: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
}
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
Expand Down

0 comments on commit 55e24ba

Please sign in to comment.