Published
Edited
Sep 16, 2021
Insert cell
Insert cell
{
const startHour = 13.6;
const endHour = 15;
return renderPolygonHike(DISTRICT_LINE, {
startHour: startHour,
duration: endHour - startHour,
zoom: 17
});
}
Insert cell
// renderPolygonHike(CIRCLE_LINE, {
// startHour: 14.33,
// duration: 2,
// zoom: 18
// })
Insert cell
// renderPolygonHike(JUBILEE_LINE, {
// startHour: 13.25,
// duration: 3,
// zoom: 16
// })
Insert cell
// renderCircleHike(LONDON_PLACES.BANKSIDE, {
// startHour: 13 + 40 / 60,
// duration: 2,
// zoom: 16,
// theta: (Math.PI * 2) / 4
// })
Insert cell
// {
// const startHour = 14;
// const endHour = 15;
// return renderPolygonHike(COLOMBO_KELANI_VALLEY_LINE, {
// startHour: startHour,
// duration: endHour - startHour,
// zoom: 16
// });
// }
Insert cell
// {
// return renderSLTrainHike('Avissawella', {
// startHour: 10.1,
// duration: 1,
// zoom: 16
// });
// }
Insert cell
// {
// const places = [
// LONDON_PLACES.GLOUCESTER_PLACE,
// LONDON_PLACES.BANKSIDE,
// LONDON_PLACES.ST_JOHNS_WOOD,
// LONDON_PLACES.GLOUCESTER_PLACE,
// ];
// return renderPolygonHike(places, {
// startHour: 13,
// duration: 4,
// zoom: 18
// });
// }
Insert cell
Insert cell
Insert cell
Insert cell
import { addDefaults } from '@nuuuwan/option-utils'
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { getLineLatLngList } from '@nuuuwan/sl-trains'
Insert cell
import { REGENTS_CANAL } from '@nuuuwan/london-waterways'
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function renderSLTrainHike(lineName, options = {}) {
const latLngList = getLineLatLngList(lineName);
return renderPolygonHike(latLngList, options);
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more