<?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ファイル)の地図表示を試している。 今回、JavaScriptのXMLHttpRequest()が非推奨になっているらしいので、GPXファイルを読み込む箇所と、国土地理院サーバから標高を求める箇所を、Fetch APIに変更。 以下、JavaScriptの修正箇所。 https://ok2nd.github.io/leaflet/gpx.html?gpx=gpx/2017_yakushima.gpx 【修正前】 var request = new XMLHttpRequest(); request.op…</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%2F160550&quot; title=&quot;LeafletでGPSログ(GPX)地図：XMLHttpRequest()が非推奨なのでFetch APIに変更。 - 晴歩雨描&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/20210515160438.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-15 16:05:50</published>
  <title>LeafletでGPSログ(GPX)地図：XMLHttpRequest()が非推奨なのでFetch APIに変更。</title>
  <type>rich</type>
  <url>https://2ndart.hatenablog.com/entry/2021/05/15/160550</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
