Leaflet notes and links
Miscellany
- NYC lat/lon: [40.7128, -74.0059]
- Presentation
- You want to learn JS? ‘eh you know enough programming already: learnxinyminutes.com
- Running a server:
python -m http.server
+ http://localhost:8000
HTML notes
Using JavaScript
<script src="PATH_TO_FILE"></script>
Using a stylesheet
<link rel="stylesheet" type="text/css" href="PATH_TO_STYLESHEET">
Some useful URLs
Leaflet, http://leafletjs.com
- Quick-start guide: here
- JavaScript to include:
https://unpkg.com/leaflet@1.1.0/dist/leaflet.js
- Stylesheet to include:
https://unpkg.com/leaflet@1.1.0/dist/leaflet.css
- Plugins/external links:
- Basemap previews
- Omnivore, for reading in all kinds of files easily
- MarkerCluster, for dense point maps
jQuery, https://jquery.com
- JavaScript to include:
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js