Web Maps, APIs and Cloud-based Platforms
1996
2005
2004
2010
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Boilerplate</title>
<!-- -->
<script type="text/javascript" src="https://npmcdn.com/@turf/turf@3.5.1/turf.min.js"></script>
<!-- leaflet -->
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<!-- filesaver -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2014-11-29/FileSaver.min.js"></script>
<!-- d3 -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.2/d3.min.js"></script>
<!-- leaflet draw -->
<link rel="stylesheet" href="http://leaflet.github.io/Leaflet.draw/leaflet.draw.css" />
<script type="text/javascript" src="https://leaflet.github.io/Leaflet.draw/leaflet.draw.js"></script>
</head>
<style type="text/css">
html, body {
height: 100%;
}
#mymap{
width:100%;
height:100%;
}
</style>
<body>
<div id="mymap"></div>
<script type="text/javascript">
var map;
function initMap(){
// initialize map container
map = L.map('mymap').setView([37.799289, -122.266433], 13);
// get the stamen toner-lite tiles
var Stamen_Toner = L.tileLayer('http://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.{ext}', {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
subdomains: 'abcd',
minZoom: 0,
maxZoom: 20,
ext: 'png'
});
// add the tiles to the map
Stamen_Toner.addTo(map);
//disable scroll wheel zoom
map.scrollWheelZoom.disable();
}
initMap();
// add your things below
</script>
</body>
</html>
API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you're using an API.
https://mappa.js.org/docs/introduction-to-web-maps.html
http://www.liedman.net/tiled-maps/
https://www.geonames.org/export/web-services.html
https://www.freecodecamp.org/news/what-is-an-api-in-english-please-b880a3214a82/
https://developers.google.com/maps/documentation/geocoding/overview
https://www.winwaed.com/blog/2009/02/09/overview-wms-wfs-wcs/