<!DOCTYPE html> <html lang="ja"> <head> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta charset="utf-8"> <style type="text/css"> <!-- body {background: azure;} p#direction {background: white;} div#mymap {width: 90vw; height: 70vh; margin: 0 auto;} button {margin: 0 1ex;} span#diag {padding: 0 1ex;} span.error {background: #e88;} span.fine {background: #4e4;} --> </style> <title>MyMap</title> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" /> <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script> </head> <body> <h1>設定確認ページ</h1> <p>スマートフォンの「位置情報」機能をONにし、ブラウザに使用権限が 出ていることを確認して、下の[追跡開始]ボタンを押してください。</p> <p> <button type="button" id="trace">追跡開始</button> <button type="button" id="stop">追跡終了</button></p> <p> 設定状況: <span id="diag"></span> </p> <div id="mymap"></div> <script type="text/javascript" src="locationtest.js" charset="utf-8"> </script> <div id="info"></div> </body> </html>