Published
Edited
Jan 16, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
map = {
//added height to the div
let container = DOM.element('div', { style: 'height:600px; width:1000px;' });
yield container;
let map = L.map(container,{scrollWheelZoom:false}).setView([20.44808, 6.82167], 2);
let osmLayer = L.tileLayer(
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}
).addTo(map);
var googleIcon = L.icon({
iconUrl: 'https://assets.stickpng.com/images/5847f9cbcef1014c0b5e48c8.png',
iconSize: [20, 20], // size of the icon
});
L.marker(latln, {icon: googleIcon}).bindPopup('Google Data Center').addTo(map);
array.map(a => L.marker(a, {icon: googleIcon}).bindPopup('Google Data Center').addTo(map));
L.polyline(array).addTo(map);
L.geoJSON(geojson).addTo(map);
}
Insert cell
Insert cell
Insert cell
Insert cell
datacenters = [
`Ghislain, Belgium`,`Ensontie 1, 49420 Hamina, Finland`, `Berkeley County, South Carolina`, `Council Bluffs, Iowa`, `The Dalles, Oregon`,`Douglas County, Georgia`,`Henderson, Nevada`,`Jackson County, Alabama`,`Lenoir, North Carolina`,`Loudoun County, Virginia`,`Mayes County, Oklahoma`,`Midlothian, Texas`,`Montgomery County, Tennessee`,`New Albany, Ohio`,`Papillion, Nebraska`,`Quilicura, Chile`,`Dublin, Ireland`,`Eemshaven, Netherlands`,`Fredericia, Denmark`,`Changhua County, Taiwan Singapore`
]
Insert cell
Insert cell
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