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
 
10
        <script src="../ammap/ammap.js" type="text/javascript"></script>
11
        <!-- map file should be included after ammap.js -->
12
		<script src="../ammap/maps/js/worldLow.js" type="text/javascript"></script>
13
        <script>
14
			var map;
15
 
16
			function writeDevInfo(event) {
17
			    document.getElementById("devInfo").innerHTML = event.str;
18
			}
19
 
20
			AmCharts.ready(function() {
21
			    map = new AmCharts.AmMap();
22
 
23
 
24
			    map.balloon.color = "#000000";
25
 
26
				var icon= "M21.25,8.375V28h6.5V8.375H21.25zM12.25,28h6.5V4.125h-6.5V28zM3.25,28h6.5V12.625h-6.5V28z";
27
 
28
				var dataProvider = {
29
				    mapVar: AmCharts.maps.worldLow,
30
				    images:[{latitude:40.3951, longitude:-73.5619, svgPath:icon, color:"#CC0000", scale:0.5, label:"New York", labelShiftY:2, zoomLevel:5, title:"New York", 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."}]
31
				};
32
 
33
			    map.dataProvider = dataProvider;
34
 
35
			    map.smallMap = new AmCharts.SmallMap();
36
 
37
			    // developer mode related
38
			    map.developerMode = true;
39
			    map.addListener("writeDevInfo", writeDevInfo);
40
 
41
			    map.write("mapdiv");
42
 
43
			});
44
       </script>
45
    </head>
46
 
47
    <body>
48
 
49
		<p class="ammapAlert">Shift + left mouse click to get dev info of desired zoom info, longitude/latitude, left/right/top/bottom coordinates</p>
50
    	<br>
51
        <div id="mapdiv" style="width: 800px; background-color:#EEEEEE; height: 500px;"></div>
52
		<br>
53
		<textarea id="devInfo" style="width:795px; height:150px;"></textarea>
54
    </body>
55
 
56
</html>