view matsugaoka/chizu1/chizu.html @ 3936:8b449670e1a8

added
author KITAJIMA Ryuto <c118077@roy.e.koeki-u.ac.jp>
date Fri, 06 Dec 2019 14:01:26 +0900
parents
children
line wrap: on
line source

<!DOCTYPE html>
<html>
  <head>
    <title>Quick Start - Leaflet</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin="">
    <script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script>
    <style type="text/css">
     <!--
      #mapid { height: 700px; width: 600px}
    -->
    </style>
  </head>
  <body>
    <div id="mapid"></div>
    <script>
      var mymap = L.map('mapid').setView([38.893254, +139.819300], 18);
      L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
        maxZoom: 18,
    	attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '
      }).addTo(mymap);
L.marker([38.894381, +139.819511]).bindPopup("なんとここはカフェテリアです。").addTo(mymap);
    </script>
  </body>
</html>

yatex.org