Skip to content

Build your personal knowledge base with Trilium Notes

fix(docs): layout in geomap

Elian Doran65ddfe8776d2
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index 735e8d642b..b46f05990b 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -5451,6 +5451,13 @@
"value": "bx bx-map-alt",
"isInheritable": false,
"position": 10
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "XpOYSgsLkTJy",
+ "isInheritable": false,
+ "position": 20
}
],
"format": "markdown",
@@ -5561,7 +5568,7 @@
"dataFileName": "Geo Map_image.jpg"
},
{
- "attachmentId": "Mx2xwNIk76ZS",
+ "attachmentId": "Mb9kRm63MxjE",
"title": "image.png",
"role": "image",
"mime": "image/png",
@@ -5569,20 +5576,28 @@
"dataFileName": "12_Geo Map_image.png"
},
{
- "attachmentId": "oaahbsMRbqd2",
+ "attachmentId": "Mx2xwNIk76ZS",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "13_Geo Map_image.png"
},
+ {
+ "attachmentId": "oaahbsMRbqd2",
+ "title": "image.png",
+ "role": "image",
+ "mime": "image/png",
+ "position": 10,
+ "dataFileName": "14_Geo Map_image.png"
+ },
{
"attachmentId": "pGf1p74KKGU4",
"title": "image.png",
"role": "image",
"mime": "image/jpg",
"position": 10,
- "dataFileName": "14_Geo Map_image.png"
+ "dataFileName": "15_Geo Map_image.png"
},
{
"attachmentId": "tfa1TRUatWEh",
@@ -5590,7 +5605,7 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "15_Geo Map_image.png"
+ "dataFileName": "16_Geo Map_image.png"
},
{
"attachmentId": "USbvJ38T4AKA",
@@ -5598,7 +5613,7 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "16_Geo Map_image.png"
+ "dataFileName": "17_Geo Map_image.png"
},
{
"attachmentId": "x6yBLIsY2LSv",
@@ -5606,7 +5621,15 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "17_Geo Map_image.png"
+ "dataFileName": "18_Geo Map_image.png"
+ },
+ {
+ "attachmentId": "yJMyBRYA3Kwi",
+ "title": "image.png",
+ "role": "image",
+ "mime": "image/png",
+ "position": 10,
+ "dataFileName": "19_Geo Map_image.png"
},
{
"attachmentId": "ZvTlu9WMd37z",
@@ -5614,7 +5637,7 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "18_Geo Map_image.png"
+ "dataFileName": "20_Geo Map_image.png"
}
]
}
diff --git a/docs/User Guide/User Guide/Note Types/12_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/12_Geo Map_image.png
index 5982cc31cf..cf14518224 100644
Binary files a/docs/User Guide/User Guide/Note Types/12_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/12_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/13_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/13_Geo Map_image.png
index 9292d9bb93..5982cc31cf 100644
Binary files a/docs/User Guide/User Guide/Note Types/13_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/13_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/14_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/14_Geo Map_image.png
index 0c1519f2c9..9292d9bb93 100644
Binary files a/docs/User Guide/User Guide/Note Types/14_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/14_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/15_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/15_Geo Map_image.png
index debb47ce32..0c1519f2c9 100644
Binary files a/docs/User Guide/User Guide/Note Types/15_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/15_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/16_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/16_Geo Map_image.png
index 23209e0adf..debb47ce32 100644
Binary files a/docs/User Guide/User Guide/Note Types/16_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/16_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/17_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/17_Geo Map_image.png
index 9bb397516a..23209e0adf 100644
Binary files a/docs/User Guide/User Guide/Note Types/17_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/17_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/18_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/18_Geo Map_image.png
index 4e32110f83..9bb397516a 100644
Binary files a/docs/User Guide/User Guide/Note Types/18_Geo Map_image.png and b/docs/User Guide/User Guide/Note Types/18_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/19_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/19_Geo Map_image.png
new file mode 100644
index 0000000000..e77c1aff8e
Binary files /dev/null and b/docs/User Guide/User Guide/Note Types/19_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/20_Geo Map_image.png b/docs/User Guide/User Guide/Note Types/20_Geo Map_image.png
new file mode 100644
index 0000000000..4e32110f83
Binary files /dev/null and b/docs/User Guide/User Guide/Note Types/20_Geo Map_image.png differ
diff --git a/docs/User Guide/User Guide/Note Types/Geo Map.md b/docs/User Guide/User Guide/Note Types/Geo Map.md
index 96f368a938..b2dad9c0b2 100644
--- a/docs/User Guide/User Guide/Note Types/Geo Map.md
+++ b/docs/User Guide/User Guide/Note Types/Geo Map.md
@@ -21,16 +21,16 @@ The position on the map and the zoom are saved inside the map note and restored
| | | |
| --- | --- | --- |
-| 1 | | To create a marker, first navigate to the desired point on the map. Then press the ![](16_Geo%20Map_image.png)button on the top-right of the map.    <br> <br>If the button is not visible, make sure the button section is visible by pressing the chevron button ( ![](2_Geo%20Map_image.png)) in the top-right of the map. |
+| 1 | To create a marker, first navigate to the desired point on the map. Then press the ![](12_Geo%20Map_image.png) button in the [Floating buttons](../Basic%20Concepts%20and%20Features/UI%20Elements/Floating%20buttons.md) (top-right) area. <br> <br>If the button is not visible, make sure the button section is visible by pressing the chevron button (![](19_Geo%20Map_image.png)) in the top-right of the map. | |
| 2 | ![](3_Geo%20Map_image.png) | Once pressed, the map will enter in the insert mode, as illustrated by the notification.    <br> <br>Simply click the point on the map where to place the marker, or the Escape key to cancel. |
| 3 | ![](9_Geo%20Map_image.png) | Enter the name of the marker/note to be created. |
-| 4 | ![](17_Geo%20Map_image.png) | Once confirmed, the marker will show up on the map and it will also be displayed as a child note of the map. |
+| 4 | ![](18_Geo%20Map_image.png) | Once confirmed, the marker will show up on the map and it will also be displayed as a child note of the map. |
## How the location of the markers is stored
The location of a marker is stored in the `#geolocation` attribute of the child notes:
-![](18_Geo%20Map_image.png)
+![](20_Geo%20Map_image.png)
This value can be added manually if needed. The value of the attribute is made up of the latitude and longitude separated by a comma.
@@ -70,9 +70,9 @@ The value of the attribute is made up of the latitude and longitude separated by
| | | |
| --- | --- | --- |
-| 1 | ![](13_Geo%20Map_image.png) | Go to Google Maps on the web and look for a desired location, right click on it and a context menu will show up.    <br> <br>Simply click on the first item displaying the coordinates and they will be copied to clipboard.    <br> <br>Then paste the value inside the text box into the `#geolocation` attribute of a child note of the map (don't forget to surround the value with a `"` character). |
+| 1 | ![](14_Geo%20Map_image.png) | Go to Google Maps on the web and look for a desired location, right click on it and a context menu will show up.    <br> <br>Simply click on the first item displaying the coordinates and they will be copied to clipboard.    <br> <br>Then paste the value inside the text box into the `#geolocation` attribute of a child note of the map (don't forget to surround the value with a `"` character). |
| 2 | ![](5_Geo%20Map_image.png) | In Trilium, create a child note under the map. |
-| 3 | ![](12_Geo%20Map_image.png) | And then go to Owned Attributes and type `#geolocation="`, then paste from the clipboard as-is and then add the ending `"` character. Press Enter to confirm and the map should now be updated to contain the new note. |
+| 3 | ![](13_Geo%20Map_image.png) | And then go to Owned Attributes and type `#geolocation="`, then paste from the clipboard as-is and then add the ending `"` character. Press Enter to confirm and the map should now be updated to contain the new note. |
### Adding from OpenStreetMap
@@ -91,12 +91,12 @@ Trilium has basic support for displaying GPS tracks on the geo map.
| | | |
| --- | --- | --- |
| 1 | ![](4_Geo%20Map_image.png) | To add a track, simply drag & drop a .gpx file inside the geo map in the note tree. |
-| 2 | ![](15_Geo%20Map_image.png) | In order for the file to be recognized as a GPS track, it needs to show up as `application/gpx+xml` in the _File type_ field. |
+| 2 | ![](16_Geo%20Map_image.png) | In order for the file to be recognized as a GPS track, it needs to show up as `application/gpx+xml` in the _File type_ field. |
| 3 | ![](7_Geo%20Map_image.png) | When going back to the map, the track should now be visible.    <br> <br>The start and end points of the track are indicated by the two blue markers. |
## Troubleshooting
-![](14_Geo%20Map_image.png)
+![](15_Geo%20Map_image.png)
### Grid-like artifacts on the map
diff --git a/src/public/app/doc_notes/en/User Guide/!!!meta.json b/src/public/app/doc_notes/en/User Guide/!!!meta.json
index 94741064cc..233c9ece1e 100644
--- a/src/public/app/doc_notes/en/User Guide/!!!meta.json
+++ b/src/public/app/doc_notes/en/User Guide/!!!meta.json
@@ -5451,6 +5451,13 @@
"value": "bx bx-map-alt",
"isInheritable": false,
"position": 10
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "XpOYSgsLkTJy",
+ "isInheritable": false,
+ "position": 20
}
],
"format": "html",
@@ -5561,7 +5568,7 @@
"dataFileName": "Geo Map_image.jpg"
},
{
- "attachmentId": "Mx2xwNIk76ZS",
+ "attachmentId": "Mb9kRm63MxjE",
"title": "image.png",
"role": "image",
"mime": "image/png",
@@ -5569,20 +5576,28 @@
"dataFileName": "12_Geo Map_image.png"
},
{
- "attachmentId": "oaahbsMRbqd2",
+ "attachmentId": "Mx2xwNIk76ZS",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "13_Geo Map_image.png"
},
+ {
+ "attachmentId": "oaahbsMRbqd2",
+ "title": "image.png",
+ "role": "image",
+ "mime": "image/png",
+ "position": 10,
+ "dataFileName": "14_Geo Map_image.png"
+ },
{
"attachmentId": "pGf1p74KKGU4",
"title": "image.png",
"role": "image",
"mime": "image/jpg",
"position": 10,
- "dataFileName": "14_Geo Map_image.png"
+ "dataFileName": "15_Geo Map_image.png"
},
{
"attachmentId": "tfa1TRUatWEh",
@@ -5590,7 +5605,7 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "15_Geo Map_image.png"
+ "dataFileName": "16_Geo Map_image.png"
},
{
"attachmentId": "USbvJ38T4AKA",
@@ -5598,7 +5613,7 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "16_Geo Map_image.png"
+ "dataFileName": "17_Geo Map_image.png"
},
{
"attachmentId": "x6yBLIsY2LSv",
@@ -5606,7 +5621,15 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "17_Geo Map_image.png"
+ "dataFileName": "18_Geo Map_image.png"
+ },
+ {
+ "attachmentId": "yJMyBRYA3Kwi",
+ "title": "image.png",
+ "role": "image",
+ "mime": "image/png",
+ "position": 10,
+ "dataFileName": "19_Geo Map_image.png"
},
{
"attachmentId": "ZvTlu9WMd37z",
@@ -5614,7 +5637,7 @@
"role": "image",
"mime": "image/png",
"position": 10,
- "dataFileName": "18_Geo Map_image.png"
+ "dataFileName": "20_Geo Map_image.png"
}
]
}
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/12_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/12_Geo Map_image.png
index 5982cc31cf..cf14518224 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/12_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/12_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/13_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/13_Geo Map_image.png
index 9292d9bb93..5982cc31cf 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/13_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/13_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/14_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/14_Geo Map_image.png
index 0c1519f2c9..9292d9bb93 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/14_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/14_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/15_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/15_Geo Map_image.png
index debb47ce32..0c1519f2c9 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/15_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/15_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/16_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/16_Geo Map_image.png
index 23209e0adf..debb47ce32 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/16_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/16_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/17_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/17_Geo Map_image.png
index 9bb397516a..23209e0adf 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/17_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/17_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/18_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/18_Geo Map_image.png
index 4e32110f83..9bb397516a 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/18_Geo Map_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/18_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/19_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/19_Geo Map_image.png
new file mode 100644
index 0000000000..e77c1aff8e
Binary files /dev/null and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/19_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/20_Geo Map_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/20_Geo Map_image.png
new file mode 100644
index 0000000000..4e32110f83
Binary files /dev/null and b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/20_Geo Map_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Geo Map.html b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Geo Map.html
index 0c095d9939..632bbb8d1b 100644
--- a/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Geo Map.html
+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Note Types/Geo Map.html
@@ -57,8 +57,13 @@
<p>The position on the map and the zoom are saved inside the map note and
restored when visiting again the note.</p>
<h2>Adding a marker using the map</h2>
- <figure class="table">
- <table>
+ <figure class="table" style="width:163.53%;">
+ <table class="ck-table-resized">
+ <colgroup>
+ <col style="width:1.69%;">
+ <col style="width:66.49%;">
+ <col style="width:31.82%;">
+ </colgroup>
<thead>
<tr>
<th>&nbsp;</th>
@@ -69,19 +74,21 @@
<tbody>
<tr>
<td>1</td>
- <td>&nbsp;</td>
- <td>To create a marker, first navigate to the desired point on the map. Then
+ <td colspan="2">To create a marker, first navigate to the desired point on the map. Then
press the
- <img src="16_Geo Map_image.png">button on the top-right of the map.&nbsp;&nbsp;&nbsp;
+ <img src="12_Geo Map_image.png" width="18" height="18">button in the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Floating%20buttons.html">Floating buttons</a>&nbsp;(top-right)
+ area.
<br>
<br>If the button is not visible, make sure the button section is visible
by pressing the chevron button (
- <img src="2_Geo Map_image.png">) in the top-right of the map.</td>
+ <img src="19_Geo Map_image.png" width="11"
+ height="10">) in the top-right of the map.</td>
</tr>
<tr>
<td>2</td>
<td>
- <img src="3_Geo Map_image.png">
+ <img class="image_resized" style="aspect-ratio:1730/416;width:100%;" src="3_Geo Map_image.png"
+ width="1730" height="416">
</td>
<td>Once pressed, the map will enter in the insert mode, as illustrated by
the notification.&nbsp;&nbsp;&nbsp;
@@ -92,14 +99,16 @@
<tr>
<td>3</td>
<td>
- <img src="9_Geo Map_image.png">
+ <img class="image_resized" style="aspect-ratio:1586/404;width:100%;" src="9_Geo Map_image.png"
+ width="1586" height="404">
</td>
<td>Enter the name of the marker/note to be created.</td>
</tr>
<tr>
<td>4</td>
<td>
- <img src="17_Geo Map_image.png">
+ <img class="image_resized" style="aspect-ratio:1696/608;width:99.95%;"
+ src="18_Geo Map_image.png" width="1696" height="608">
</td>
<td>Once confirmed, the marker will show up on the map and it will also be
displayed as a child note of the map.</td>
@@ -111,7 +120,7 @@
<p>The location of a marker is stored in the <code>#geolocation</code> attribute
of the child notes:</p>
<p>
- <img src="18_Geo Map_image.png">
+ <img src="20_Geo Map_image.png">
</p>
<p>This value can be added manually if needed. The value of the attribute
is made up of the latitude and longitude separated by a comma.</p>
@@ -169,7 +178,7 @@
<tr>
<td>1</td>
<td>
- <img src="13_Geo Map_image.png">
+ <img src="14_Geo Map_image.png">
</td>
<td>Go to Google Maps on the web and look for a desired location, right click
on it and a context menu will show up.&nbsp;&nbsp;&nbsp;
@@ -190,7 +199,7 @@
<tr>
<td>3</td>
<td>
- <img src="12_Geo Map_image.png">
+ <img src="13_Geo Map_image.png">
</td>
<td>And then go to Owned Attributes and type <code>#geolocation="</code>, then
paste from the clipboard as-is and then add the ending <code>"</code> character.
@@ -265,7 +274,7 @@
<tr>
<td>2</td>
<td>
- <img src="15_Geo Map_image.png">
+ <img src="16_Geo Map_image.png">
</td>
<td>In order for the file to be recognized as a GPS track, it needs to show
up as <code>application/gpx+xml</code> in the <em>File type</em> field.</td>
@@ -284,7 +293,7 @@
</figure>
<h2>Troubleshooting</h2>
<p>
- <img src="14_Geo Map_image.png">
+ <img src="15_Geo Map_image.png">
</p>
<h3>Grid-like artifacts on the map</h3>
<p>This occurs if the application is not at 100% zoom which causes the pixels