1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GPSの研究 その26

Last updated at Posted at 2018-06-22

概要

GPSを理解したかった。
u-centerのKMLをgoogle mapで表示してみた。

写真

サンプルコード

var map;

function init() {
    var point = new google.maps.LatLng(37.92, 140.15);
    var map_opt = {
        zoom: 14,
        center: point
    }
    map = new google.maps.Map(document.getElementById('map'), map_opt);    
    var url = "http://jsrun.it/assets/Q/u/g/x/QugxD";
    var mac = new google.maps.KmlLayer({
        url: url,
        preserveViewport: true
    });
    mac.setMap(map);
}
google.maps.event.addDomListener(window, 'load', init);


成果物

以上。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?