-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoogle.html
62 lines (55 loc) · 2.26 KB
/
google.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>NLS Map + Google Maps API v2</title>
<style type="text/css">
/*<![CDATA[*/
v\:* {behavior:url(#default#VML);}
html, body { font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif; }
body { margin: 10px; background: #fff; }
/*]]>*/
</style>
<script type="text/javascript" src="http://nls.tileserver.com/api.js"></script>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAA9pSslyaYyyl6x8HKrHAZvxS4-alJFZ9Cxp3qiYSlGHIYxF9uHhT0NLb9B9BXGUGGDctSO4QVa1jLLA" type="text/javascript">
</script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(55.96,-3.2), 12);
map.setUIToDefault();
// -- copy&paste block start
var copyright = new GCopyright(1, new GLatLngBounds(new GLatLng(-90, -180),new GLatLng(90, 180)), 1,
"Historical maps from <a href='http://geo.nls.uk/maps/api/'>NLS Maps API<\/a>");
var copyrightCollection = new GCopyrightCollection();
copyrightCollection.addCopyright(copyright);
var tilelayer = new GTileLayer(copyrightCollection, 1, NLSTileUrlOS('MAXZOOM'));
tilelayer.getTileUrl = NLSTileUrlOS;
var nlsmap = new GMapType([tilelayer], G_NORMAL_MAP.getProjection(), "Historical");
// -- copy&paste block end
// -- remember to add the new map layer to your mashup!!
map.addMapType(nlsmap);
map.setMapType(nlsmap);
/*
var marker = new GMarker( new GLatLng(55.96,-3.2) );
marker.bindInfoWindow("This is a text for the info window");
map.addOverlay(marker);
*/
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<h1>NLS Map + Google Maps API v2</h1>
<p>
<a href="http://www.nls.uk/">National Library of Scotland</a> & <a href="http://www.klokantech.com/">Klokan Technologies GmbH</a>
</p>
<p>
Historical maps from 1919-47 <a href="http://geo.nls.uk/maps/api/">NLS Maps API</a>
</p>
<div id="map" style="width: 600px; height: 400px" w.m=""></div>
</body>
</html>