@JamesLMilner
Software Developer
Source: Andreessen Horowitz, 2015
All parts of the architecture will need to be spatially capable
SELECT ST_Intersection(s.geom, r.geom), s.state, r.river
FROM usa_states as s, usa_rivers as r
WHERE s.state = 'Texas'
Spatial databases leverage spatial indexes
Fast, small, consistent API, good docs
Comprehensive, powerful, longstanding
Niche, more oriented around 'data viz' community
// Create map in our page, with a div with an id of mapid
var mymap = L.map('mapid').setView([51.505, -0.09], 13);
// Add a basemap
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png', {
attribution: "Insert mapbox attribution here"
maxZoom: 18,
id: 'your.mapbox.project.id',
accessToken: 'your.mapbox.public.access.token'
}).addTo(mymap);
// Example of adding a marker
var marker = L.marker([51.5, -0.09]).addTo(mymap);
// Example of some events
function onMapClick(e) {
alert("You clicked the map at " + e.latlng);
}
mymap.on('click', onMapClick);
A more complex Leaflet example
Well known, lots of questions online, hard to understand T&Cs
Comprehensive, powerful, hard to understand T&Cs