Newer
Older
soil_moisture / leaflet_point_downloader.html
<html>
<head>
<title>Soil Moisture Point Downloader</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css"
   integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
   crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"
   integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="
   crossorigin=""></script>
<!-- For testing if a point is in a polygon -->
<script src="https://cdn.rawgit.com/hayeswise/Leaflet.PointInPolygon/v1.0.0/wise-leaflet-pip.js"></script>
<script src="ok_polygon_coords.leaflet.js"></script>
<script src="leaflet_point_downloader.js"></script>
<style>
 div#map {
        width: 60%;
        height: 50%;
        border:double;
 }
 a {color:#FF7300;}
 a:hover {color:#ffffff; background-color:#FF7300;}   
</style>
</head>
<body>

<h1>Soil Moisture Point Downloader</h1>
<p>Pick a point to generate a download URL.</p>

<div id="map"></div>

<p>
  <b>Selected point:</b>
  <br/><span id="lat"></span>&deg;N, <span id="lon"></span>&deg;E
</p>
                                  
<p>Download VWC data for selected point:
  <br/><span id="download-url"></span>
</p>

</body>
</html>