dash-docs/js/events.js
David A. Harding e038560ab7
Copyrights: Add MIT License Header To More Files
- Makefile: extend copyright check test to scan all files with YAML
  headers

    - Exclude alerts from check -- lack of a license shouldn't prevent
      us from publishing emergency information

    - Also add license to Makefile itself

- Fix all errors caught by new test

    - For release notes, also link to github.com/bitcoin/bitcoin
      repository as origin

        - Also update README.md release instructions to include license
2015-07-19 18:44:49 -04:00

24 lines
877 B
JavaScript

---
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
layout: null
---
"use strict"
var zoom=2;
var minzoom=1;
if(isMobile())var zoom=minzoom=0;
var map = L.map('eventmap',{ 'zoom': zoom, 'minZoom': minzoom, 'center': [20.00, 10.00]});
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Data &copy; by <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>.',
maxZoom: 18
}).addTo(map);
var markers = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 40});
for (var i=0, nds=document.getElementById('eventdata').getElementsByTagName('DIV'), n=nds.length; i < n; i++) {
L.marker([parseFloat(nds[i].getAttribute('data-lat')), parseFloat(nds[i].getAttribute('data-lon'))]).bindPopup(nds[i].innerHTML).addTo(markers);
}
map.addLayer(markers);