- Lectures
- Online tutorials
- Practical(s)
- Assignment(s)
- Presentation(s)
HTML & CSS syntax
Basic JavaScript programming skills
Map service; WMS, WMTS &am; TMS
QGIS or ArcGIS
Make Google your friend
HTML - allows us to structure content for our web page. Our map will be contained in an element within an HTML file
CSS - gives us control of the style and visual presentation of our web page. We will use it in the placement and sizing of the map and to customize some Leaflet elements
JavaScript - gives us the ability to add interactivity to our web page. We will use it to pull in map tiles to our web page, add data (or content layers), and handle user interaction with the map
Google Map - Google Inc
Leaflet - CloudMade
Openlayers - OpenStreetMap
Bing Maps, Here Maps, ArcGIS Online, MapBox.
Name | Open Source ? | Free ? | Limitations |
---|---|---|---|
Google Maps | No | Daily | Licence |
Leaflet | Yes | Yes | skills & time |
Here Maps | No | Monthly | Licence |
ArcGIS Online | No | No | Licence |
Openlayers | Yes | Yes | skills & time |
Bing Maps | No | Monthly | Licence |
MapBox | (Yes) | Monthly | Licence |
Registration needed You get an API key
Base maps (4 options available)
Add your own data
Choose base maps
Add your own data & styles
Publish/share your map as an application
Edit the application with JavaScript API
Design maps with the MapBox Studio
Reference your design by id in your JavaScript file
Vector tiles
Based on OpenSource APIs
Completely rewritten OL3
More features by default
Simple & lightweight (it is only 28kb of code)
Mobile friendly
Simple API
Not many features included
Easier to learn if you don't know JavaScript well
Considerations
Free WMS/TMS/WMTS servers
Bootstrap framework (HTML, CSS, JS)
Leaflet Plugin
You should have some kind of interactivity in your map
Easy-to-use API for event handling etc
Filtering with a slider: jQuery + noUiSlider
It's best to transform your data points to the same CRS as your base map in QGIS/ArcGIS
If you need CRS transformations in your JavaScript code, use proj4js
Use browser tools
JavaScript code console.log(variable)
Included files
XML, wherein data is maintained in a series of structured tags
Data is arranged in a hierarchical series of key-value pairs with Discrete geometries
Encodes topology with Geometries that share sequences of positions called arcs
Queries about this Lesson, please send them to:
*References*
- Google Maps; Power Tools for Maximizing the API, 2014
Evangelos Petroutsos
- D3 Tips and Tricks; Interactive Data Visualization in a Web Browser, 2013
Malcolm Maclean
- Interactive Data Visualization for the Web, 2013
Scott Murray
- Web Programming with HTML5, CSS, and JavaScript, 2019
John Dean
- Leaflet Documentation
Leaflet Team
- Google Documentation for developers
Google Team
Courtesy of …