// Generated by CoffeeScript 1.10.0 (function() { var base_layer, body, cartodbAttr, cartodbUrl, esriAttr, esriUrl, height, labels_layer, map, width; body = d3.select('body'); width = body.node().getBoundingClientRect().width; height = body.node().getBoundingClientRect().height; d3.select('#map').style({ width: width, height: height }); esriAttr = 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'; esriUrl = 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'; base_layer = L.tileLayer(esriUrl, { id: 'esri_satellite', attribution: esriAttr }); cartodbAttr = '© OpenStreetMap © CartoDB'; cartodbUrl = 'http://{s}.basemaps.cartocdn.com/dark_only_labels/{z}/{x}/{y}.png'; labels_layer = L.tileLayer(cartodbUrl, { id: 'cartodb_labels', attribution: cartodbAttr }); map = L.map('map', { center: [30, 0], zoom: 2, layers: [base_layer, labels_layer] }); }).call(this);