0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

leafletを鍛える。その47

0
Last updated at Posted at 2026-02-19

概要

leafletを鍛えてみた。
gsidem2mapbox、見つけたのでやってみた。

参考にしたページ

写真

image.png

サンプルコード

    (async function() {
      await navigator.serviceWorker.register("./hana.js");
      if (!navigator.serviceWorker.controller) 
      {
        location.reload();
      } 
      else 
      {
	      var map = L.map('map').setView([36.3219088 , 138.0032936], 14);
	      L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/dem_png/{z}/{x}/{y}.png', {
		      attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>"
      	}).addTo(map);
      }
    })();


成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?