-
Notifications
You must be signed in to change notification settings - Fork 52
/
google-with-marker-customization.html
42 lines (31 loc) · 1.24 KB
/
google-with-marker-customization.html
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
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<body>
<!--
This example uses:
Google Maps
titleColumn & fields parameters to put content in popups
custom default icon
-->
<div id="map" style="height: 500px; width: 600px"></div>
<script type="text/javascript" src="common/tabletop.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="../src/mapsheet.js"></script>
<script type="text/javascript">
window.onload = function() { init() };
var public_spreadsheet_url = 'https://docs.google.com/spreadsheet/pub?key=0AtG9_k99Q_n6dGRTMzVtNmdoclNHdXVfRWl6YkFoclE&output=html';
function init() {
Mapsheet( { key: public_spreadsheet_url,
element: "map",
titleColumn: "town",
fields: [ "Lat", "Street Address" ],
provider: Mapsheet.Providers.Google,
markerOptions: {
iconUrl: 'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=2|EF75FE'
}
} );
}
document.write("The published spreadsheet is located at <a target='_new' href='" + public_spreadsheet_url + "'>" + public_spreadsheet_url + "</a>");
</script>
</body>
</html>