Skip to content

Instantly share code, notes, and snippets.

@bsudekum
Created September 23, 2013 14:14
Show Gist options
  • Save bsudekum/6671024 to your computer and use it in GitHub Desktop.
Save bsudekum/6671024 to your computer and use it in GitHub Desktop.
google chart
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<script src='http://code.jquery.com/jquery-1.8.3.min.js'></script>
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script type='text/javascript'>
var map = L.mapbox.map('map', 'bobbysud.map-q9s37it7')
.setView([3.15873,101.69742], 17);
L.marker([3.15873,101.69742], {
icon: L.mapbox.marker.icon({
'marker-symbol': 'pitch',
'marker-color': 'DD4814'
})
})
.bindPopup('<img src="http://chart.googleapis.com/chart?chxt=y&chbh=a&chs=300x225&cht=bvg&chco=A2C180,3D7930&chd=t:10,50,60,80,40,60,30|50,60,100,40,20,40,30&chtt=Vertical+bar+chart" width="300" height="225" alt="Vertical bar chart" />')
.addTo(map)
.openPopup();
L.marker([3.158,101.699], {
icon: L.mapbox.marker.icon({
'marker-symbol': 'hospital',
'marker-color': 'ddd'
})
})
.bindPopup('hospital')
.addTo(map)
</script>
</body>
</html>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment