| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/sample/googlemap/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>gmaps.js — the easiest way to use Google Maps</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!--<script src="//maps.google.com/maps/api/js?sensor=true"></script>-->
<script src="http://ditu.google.cn/maps/api/js?sensor=true&language=zh-CN"></script>
<script src="gmaps/gmaps.js"></script>
<script src="gmaps/prettify/prettify.js"></script>
<link rel="stylesheet" href='//fonts.googleapis.com/css?family=Convergence|Bitter|Droid+Sans|Ubuntu+Mono' />
<!--<link rel="stylesheet" href="../styles.css" />
<link rel="stylesheet" href="../prettify/prettify.css" />
<link rel="stylesheet" href="examples.css" />-->
<script>
$(document).ready(function(){
prettyPrint();
var url = GMaps.staticMapURL({
size: [610, 300],
lat: -12.043333,
lng: -77.028333,
markers: [
{lat: -12.043333, lng: -77.028333},
{lat: -12.045333, lng: -77.034, size: 'small'},
{lat: -12.045633, lng: -77.022, color: 'blue'}
]
});
$('<img/>').attr('src', url).appendTo('#map');
});
</script>
</head>
<body>
<div id="header">
<h1>
gmaps.js
</h1>
<h2>Google Maps API with less pain and more fun</h2>
</div>
<div id="body">
<h3>Static Maps</h3>
<div class="row">
<div class="span11">
<div class="popin">
<div id="map"></div>
</div>
</div>
</div>
</div>
</body>
</html>