-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Task] #109, start polyline * [Task] #94, marker * [Task] #109, gradient color polyline color based on speed * [Task] #109 linter fixes
- Loading branch information
1 parent
f14c9e3
commit 842d0c8
Showing
8 changed files
with
216 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.mapContainer { | ||
height: 100%; | ||
} | ||
|
||
|
||
.leaflet-popup-content { | ||
font-size: 1.2rem; | ||
min-width: min-content; | ||
} | ||
|
||
.leaflet-overlay-pane canvas { /* polyline */ | ||
filter: drop-shadow(0px 0px 3px var(--neutral)); | ||
} | ||
|
||
|
||
.customMarkerIcon { | ||
|
||
&.start, &.end { | ||
display: flex; | ||
place-content: center; | ||
border: 2px solid var(--contrastBackground); | ||
outline: 3px solid var(--contrastBackground); | ||
outline-offset: 3px; | ||
border-radius: 50%; | ||
background: var(--contrastBackground); | ||
|
||
svg { | ||
height: 80%; | ||
} | ||
} | ||
|
||
&.start { | ||
outline: none; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Polyline plugin for native Leaflet | ||
import * as L from 'leaflet'; | ||
|
||
declare module 'leaflet' { | ||
namespace Polycolor { | ||
interface Options { | ||
colors: Array<string | null>; | ||
weight?: number; | ||
} | ||
} | ||
|
||
// Declare the actual polycolor function under the L namespace | ||
function polycolor(latlngs: L.LatLngExpression[], options: Polycolor.Options): L.Polyline; | ||
} |