<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>art2nd</author_name>
  <author_url>https://blog.hatena.ne.jp/art2nd/</author_url>
  <blog_title>晴歩雨描</blog_title>
  <blog_url>https://2ndart.hatenablog.com/</blog_url>
  <categories>
    <anon>地図・マップ</anon>
    <anon>ホームページ、Web作成</anon>
  </categories>
  <description>地図データを扱うJavaScriptライブラリ「Leaflet」を使って、GPSログ(GPXファイル)の地図表示を試している。 前回、ルート上に30分間隔で時間をラベルで表示するようにした。 しかし、GPXログに一定時間空白の時間帯があると、表示される時間ラベルが途中で30分以上の間隔が空いて、その後時間が次第にずれる事が分かった。極力、開始地点からの30分間隔刻みで時間ラベルを表示するように修正した。 https://ok2nd.github.io/leaflet/gpx.html?gpx=gpx/2017_yakushima.gpx 修正前 修正後 以下、JavaScriptの修正箇所。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2ndart.hatenablog.com%2Fentry%2F2021%2F05%2F15%2F120326&quot; title=&quot;LeafletでGPSログ(GPX)地図：30分間隔時間ラベル表示ロジックを修正。 - 晴歩雨描&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/art2nd/20210515/20210515114431.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-15 12:03:26</published>
  <title>LeafletでGPSログ(GPX)地図：30分間隔時間ラベル表示ロジックを修正。</title>
  <type>rich</type>
  <url>https://2ndart.hatenablog.com/entry/2021/05/15/120326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
