diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2025-04-28 08:38:59 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2025-04-28 08:42:47 +0800 |
commit | 7702cd1a6f708cea72c7fd16a520d7c036ff3ec7 (patch) | |
tree | 3970c7c291457e9ac2d44ff7541a2797e8174c54 /snippets | |
parent | 4cad49b1bf0a3998a76d948f9c53b857510676e0 (diff) |
Update
Diffstat (limited to 'snippets')
-rw-r--r-- | snippets/html_template_map_leaderline | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/snippets/html_template_map_leaderline b/snippets/html_template_map_leaderline index afcec6d..02affef 100644 --- a/snippets/html_template_map_leaderline +++ b/snippets/html_template_map_leaderline | |||
@@ -5,12 +5,12 @@ | |||
5 | <meta charset='utf-8'> | 5 | <meta charset='utf-8'> |
6 | <title>Leader Line with Markdown</title> | 6 | <title>Leader Line with Markdown</title> |
7 | 7 | ||
8 | <meta property="og:description" content="Add a default marker to the map." /> | 8 | <meta property="og:description" content="門牌分布地圖" /> |
9 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
10 | 10 | ||
11 | <link rel='stylesheet' href='https://unpkg.com/maplibre-gl@4.5.2/dist/maplibre-gl.css' /> | 11 | <link rel='stylesheet' href='https://unpkg.com/maplibre-gl@5.4.0/dist/maplibre-gl.css' /> |
12 | 12 | ||
13 | <script src='https://unpkg.com/maplibre-gl@4.5.2/dist/maplibre-gl.js'></script> | 13 | <script src='https://unpkg.com/maplibre-gl@5.4.0/dist/maplibre-gl.js'></script> |
14 | <script src='https://cdnjs.cloudflare.com/ajax/libs/leader-line/1.0.7/leader-line.min.js'></script> | 14 | <script src='https://cdnjs.cloudflare.com/ajax/libs/leader-line/1.0.7/leader-line.min.js'></script> |
15 | <script src='https://cdnjs.cloudflare.com/ajax/libs/marked/14.0.0/marked.min.js'></script> | 15 | <script src='https://cdnjs.cloudflare.com/ajax/libs/marked/14.0.0/marked.min.js'></script> |
16 | <style> | 16 | <style> |
@@ -26,12 +26,13 @@ | |||
26 | #markdown { | 26 | #markdown { |
27 | height: 100%; | 27 | height: 100%; |
28 | } | 28 | } |
29 | 29 | #map { | |
30 | #map, | 30 | flex: 70%; |
31 | } | ||
31 | #markdown { | 32 | #markdown { |
32 | flex: 50%; | 33 | flex: 30%; |
34 | padding: 0.5em 1em; | ||
33 | } | 35 | } |
34 | |||
35 | pre { | 36 | pre { |
36 | display: none; | 37 | display: none; |
37 | } | 38 | } |