blob: 61a1dfd3bdc27d7e7b3737572277211ea2b45158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!doctype html>
<html>
<head>
<meta charset="utf8">
<title>Elections 2013 Map</title>
<link rel="stylesheet" href="http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css">
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
</head>
<body>
<h1>Elections 2013 Map</h1>
<div id='map' style='width:500px;height:400px;'></div>
<script>
var map = mapbox.map('map');
map.addLayer(mapbox.layer().id('yuvadm.map-8zhg56t1'));
var markerLayer = mapbox.markers.layer();
mapbox.markers.interaction(markerLayer);
map.addLayer(markerLayer);
map.centerzoom({lat: 31.54, lon: 35.23}, 7);
markerLayer.add_feature({
geometry: { coordinates: [35.2, 31.5] },
properties: {
'marker-color': '#000',
'marker-symbol': 'star-stroked',
title: 'Example Marker',
description: 'This is a single marker.'
}
});
</script>
</body>
</html>
|