TEST

利用 Google Maps Javascript 匯入 KML 檔案自動畫圖


layout: post
title: 利用 Google Maps Javascript 匯入 KML 檔案自動畫圖
date: 2021-08-24 17:41 +8
description: 如何不自己讀取資料,直接利用 KmlLayer 呈現。以及可能會碰到的問題。
toc: false
share: true
comments: true
tags: GoogleMaps Javascript Development

程式碼

可能問題

線條粗細和在 Google My Maps 或 Google Earth 上看到的不一樣! 怎麼變那麼粗?

需要手動在 KML 檔案中,自行針對每項 <LineStyle></LineStyle> 加入 <width>0.001</width>
0.001 可自行改成所需的值。
Tip: 尋找與取代 </LineStyle><width>0.001</width></LineStyle>

TEST

個人向 Jekyll 的各種狀況


layout: post
title: Jekyll tips
date: 2021-08-21 17:41 +8
description: 個人向 Jekyll 的各種狀況
toc: false
share: true
comments: true
tags: Jekyll Development

編譯問題

ffi-1.11.1-x64-mingw32 requires ruby version < 2.7.dev, >= 2.2, which is incompatible with the current version, ruby 2.7.4p191
我 2019 年使用 Ruby 2.5,2021 年我換到另一台電腦並且改用 Ruby 2.7.4,結果原本專案執行 bundle exec jekyll serve 無法部署。

解法: 運行 bundle update 看能否解決問題