HTML 来自Google的jQuery UI 1.8.2

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML 来自Google的jQuery UI 1.8.2相关的知识,希望对你有一定的参考价值。

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>

html http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-geolocation.html

<!doctype html> 
<html lang="en">
   <head>
  	<title>Google maps and geolocation - Google maps jQuery plugin</title>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta http-equiv="content-language" content="en" />
		<meta name="viewport" content="width=device-width,initial-scale=1" />
		<meta name="keywords" content="Google maps, jQuery, plugin, Geolocation, Geo positioning" />
		<meta name="description" content="An example with jQuery, Google Maps and geolocation using Google maps jQuery plugin" />

		
		<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css" />

		<link type="text/css" rel="stylesheet" href="css/style.css" />

    </head>
    <body>
		<header class="dark">

		</header>
		<div class="container_16">
			<article class="grid_16">
				<div class="item rounded dark">
					<div id="map_canvas" class="map rounded"></div>
				</div>
			</article>
		</div>

		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
	
		<script type="text/javascript" src="js/demo.js"></script>
		<script type="text/javascript" src="ui/jquery.ui.map.js"></script>
		<script type="text/javascript" src="ui/jquery.ui.map.overlays.js"></script>
		<!--the getCurrentPosition is an extension of the plugin. Most likely you haven't included jquery-ui-map-extensions.js-->
		<script type="text/javascript" src="ui/jquery.ui.map.extensions.js"></script>
		<script type="text/javascript">
            $(function() { 
				demo.add(function() {
					$('#map_canvas').gmap({ 'disableDefaultUI':true, 'callback': function() {
						var self = this;
						self.getCurrentPosition(function(position, status) {
							if ( status === 'OK' ) {

				
								self.set('clientPosition', new google.maps.LatLng(position.coords.latitude, position.coords.longitude));
								self.addMarker({'position': self.get('clientPosition'), 'bounds': true});
								var zoom = $('#map_canvas').gmap('option', 'zoom');
								$('#map_canvas').gmap('option', 'zoom', 15); //改變檢視層級
								
								self.addShape('Circle', { 'strokeWeight': 0, 'fillColor': "#008595", 'fillOpacity': 0.25, 'center': self.get('clientPosition'), 'radius': 300, clickable: false });//畫半徑300m的圈
							}
						});   
					}});
				}).load();
			});
        </script>
    
	</body>
</html>

以上是关于HTML 来自Google的jQuery UI 1.8.2的主要内容,如果未能解决你的问题,请参考以下文章

HTML 来自Google的jQuery 1.4.2

来自 Google CDN 的 HTTPS 友好的 jQuery CSS 主题

HTML 从Google CDN加载jQuery和jQuery UI

HTML 来自Google CDN的jQuery

html http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-geolocation.html

每个单词下方的jQuery-ui自动完成下拉菜单