Created
March 30, 2014 23:18
-
-
Save dancaf/9881615 to your computer and use it in GitHub Desktop.
mapa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<link rel='stylesheet' href='http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css'> | |
<script src='http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js' type='text/javascript'></script> | |
<script src='https://rawgithub.com/leaflet-extras/leaflet-providers/gh-pages/leaflet-providers.js' type='text/javascript'></script> | |
<script src='http://harrywood.co.uk/maps/examples/leaflet/leaflet-plugins/layer/vector/KML.js' type='text/javascript'></script> | |
<style> | |
.rChart { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
width: 800px; | |
height: 400px; | |
} | |
</style> | |
</head> | |
<body > | |
<div id = 'chart173c32582a54' class = 'rChart leaflet'></div> | |
<script> | |
var spec = { | |
"dom": "chart173c32582a54", | |
"width": 800, | |
"height": 400, | |
"urlTemplate": "http://{s}.tile.osm.org/{z}/{x}/{y}.png", | |
"layerOpts": { | |
"attribution": "Map data<a href=\"http://openstreetmap.org\">OpenStreetMap</a>\n contributors, Imagery<a href=\"http://mapbox.com\">MapBox</a>" | |
}, | |
"center": [ 0, 0 ], | |
"zoom": 1, | |
"id": "chart173c32582a54" | |
} | |
var map = L.map(spec.dom, spec.mapOpts) | |
map.setView(spec.center, spec.zoom); | |
if (spec.provider){ | |
L.tileLayer.provider(spec.provider).addTo(map) | |
} else { | |
L.tileLayer(spec.urlTemplate, spec.layerOpts).addTo(map) | |
} | |
L | |
.marker([ | |
"44.82106616", | |
"11.62347696" | |
]) | |
.addTo( map ) | |
.bindPopup("<b>USER: <a href=\"NA\" target=\"_blank\">piermilizia</a><br>Country: Italia<br>Language: it<br>Place of user: #Ipocrsia:#Putin sostiene che autodeterminazione popoli sia un diritto,anche in #Crimea.In #Russia 21 repubbliche la chiedono da anni,invano") | |
L | |
.marker([ | |
"31.222328", | |
"-82.359317" | |
]) | |
.addTo( map ) | |
.bindPopup("<b>USER: <a href=\"http://t.co/9bOcvwiqLs\" target=\"_blank\">TheVitalPortal</a><br>Country: United States<br>Language: en<br>Place of user: In Crimea, uncertainty grips Ukraine's military (from @AP) this is not good news #tvp #crimea #ukraine http://t.co/9bOcvwiqLs") | |
L | |
.marker([ | |
"28.44808538", | |
"-81.46724588" | |
]) | |
.addTo( map ) | |
.bindPopup("<b>USER: <a href=\"NA\" target=\"_blank\">Gohoke</a><br>Country: United States<br>Language: en<br>Place of user: @nycjim @EvgenyFeldman What will be effect of #Crimea on US/Russia space programs?") | |
L | |
.marker([ | |
"41.94891072", | |
"-87.70503659" | |
]) | |
.addTo( map ) | |
.bindPopup("<b>USER: <a href=\"NA\" target=\"_blank\">superfares</a><br>Country: United States<br>Language: en<br>Place of user: #Crimea's referendum is today, can't wait for result. My prediction #Russia win by 100 percent.") | |
if (spec.circle2){ | |
for (var c in spec.circle2){ | |
var circle = L.circle(c.center, c.radius, c.opts) | |
.addTo(map); | |
} | |
} | |
</script> | |
<script></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment