Sha256: 25547638ab1eacdb3aaad4659b2ac0b4791f6353ff086437d556236553350b5d
Contents?: true
Size: 860 Bytes
Versions: 6
Compression:
Stored size: 860 Bytes
Contents
window.conference.map = (() => { let config; let lang; let map; const setup = (elId) => { map = L.map(elId).setView(config.home_coord, config.default_zoom); L.tileLayer.provider(config.map_provider).addTo(map); L.easyButton('far fa-star', () => { map.flyTo(config.home_coord, config.default_zoom); }, lang.focus_conf).addTo(map); L.control.locate({ flyTo: true, strings: { title: lang.focus_me } }).addTo(map); }; const init = (c, l) => { config = c; lang = l; const elId = 'map'; if (document.getElementById(elId)) { setup(elId); } }; const getMap = () => { return map }; return { init: init, getMap: getMap }; })();
Version data entries
6 entries across 6 versions & 2 rubygems