mirror of
https://github.com/zadam/trilium.git
synced 2025-10-17 11:00:10 +08:00
fix(geo_map): icons for GPX waypoints
This commit is contained in:
parent
4509ef62b5
commit
41b0f27420
3 changed files with 8 additions and 4 deletions
6
apps/client/src/types-lib.d.ts
vendored
6
apps/client/src/types-lib.d.ts
vendored
|
@ -39,12 +39,12 @@ declare module "leaflet" {
|
|||
startIcon?: DivIcon | Icon | string | undefined;
|
||||
endIcon?: DivIcon | Icon | string | undefined;
|
||||
wptIcons?: {
|
||||
[key: string]: Icon | string;
|
||||
[key: string]: DivIcon | Icon | string;
|
||||
};
|
||||
wptTypeIcons?: {
|
||||
[key: string]: Icon | string;
|
||||
[key: string]: DivIcon | Icon | string;
|
||||
};
|
||||
pointMatchers?: Array<{ regex: RegExp; icon: Icon | string}>;
|
||||
pointMatchers?: Array<{ regex: RegExp; icon: DivIcon | Icon | string}>;
|
||||
}
|
||||
|
||||
interface GPXOptions {
|
||||
|
|
|
@ -235,7 +235,10 @@ export default class GeoMapTypeWidget extends TypeWidget {
|
|||
const track = new this.L.GPX(stringResponse, {
|
||||
markers: {
|
||||
startIcon: this.#buildIcon(note.getIcon(), note.getColorClass(), note.title),
|
||||
endIcon: this.#buildIcon("bxs-flag-checkered")
|
||||
endIcon: this.#buildIcon("bxs-flag-checkered"),
|
||||
wptIcons: {
|
||||
"": this.#buildIcon("bx bx-pin")
|
||||
}
|
||||
}
|
||||
});
|
||||
track.addTo(this.geoMapWidget.map);
|
||||
|
|
1
docs/Release Notes/Release Notes/v0.94.0.md
vendored
1
docs/Release Notes/Release Notes/v0.94.0.md
vendored
|
@ -28,6 +28,7 @@
|
|||
* [Unable to handle multi line mathematical formulas when importing markdown](https://github.com/TriliumNext/Notes/pull/1984) by @SiriusXT
|
||||
* Calendar: became invisible if resizing while not visible
|
||||
* [GPX track not rendering on geomap note](https://github.com/TriliumNext/Notes/issues/2085)
|
||||
* [GPX icons not working](https://github.com/TriliumNext/Notes/issues/1772)
|
||||
|
||||
## ✨ Improvements
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue