Subversion Repositories php-qbpwcf

Rev

Rev 23 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 liveuser 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<html>
3
 
4
    <head>
5
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
        <title>amMap example</title>
7
 
8
        <link rel="stylesheet" href="../ammap/ammap.css" type="text/css">
9
        <link rel="stylesheet" href="style.css" type="text/css">
10
 
11
        <script src="../ammap/ammap.js" type="text/javascript"></script>
12
        <!-- map file should be included after ammap.js -->
13
		<script src="../ammap/maps/js/worldLow.js" type="text/javascript"></script>
14
        <script>
15
 
16
			var icon = "M21.25,8.375V28h6.5V8.375H21.25zM12.25,28h6.5V4.125h-6.5V28zM3.25,28h6.5V12.625h-6.5V28z";
17
 
18
			var map = AmCharts.makeChart("mapdiv", {
19
				type: "map",
20
 
21
				balloon: {
22
					color: "#000000"
23
				},
24
				dataProvider: {
25
					map: "worldLow",
26
					images: [{
27
						latitude: 40.3951,
28
						longitude: -73.5619,
29
						svgPath: icon,
30
						color: "#CC0000",
31
						scale: 0.5,
32
						label: "New York",
33
						labelShiftY: 2,
34
						zoomLevel: 5,
35
						title: "New York",
36
						description: "New York is the most populous city in the United States and the center of the New York Metropolitan Area, one of the most populous metropolitan areas in the world."
37
					}]
38
				},
39
 
40
				smallMap: {},
41
				developerMode: true
42
			});
43
 
44
			map.addListener("writeDevInfo", writeDevInfo);
45
 
46
			function writeDevInfo(event) {
47
				document.getElementById("devInfo").innerHTML = event.str;
48
			}
49
       </script>
50
    </head>
51
 
52
    <body>
53
 
54
		<p class="ammapAlert">Shift + left mouse click to get dev info of desired zoom info, longitude/latitude, left/right/top/bottom coordinates</p>
55
    	<br>
56
        <div id="mapdiv" style="width: 800px; background-color:#EEEEEE; height: 500px;"></div>
57
		<br>
58
		<textarea id="devInfo" style="width:795px; height:150px;"></textarea>
59
    </body>
60
 
61
</html>