本文へスキップ

구글맵 api 편리하기 사용가능하게 해주는 gmaps.js

MintState 2013年3月4日 9:44 閲覧 12939

구글맵 api 편리하기 사용가능하게 해주는 gmaps.js

[ATTACH]776[/ATTACH]
http://hpneo.github.com/gmaps/

gmaps.js allows you to use the potential of Google Maps in a simple way.
No more extensive documentation or large amount of code.

가장쉽게 구글 맵을 적용시킬수 있습니다.

<script type="text/javascript">
var map;
$(document).ready(function(){
	map = new GMaps({
		div: '#map',
		lat: -12.043333,
		lng: -77.028333
	});
	GMaps.geolocate({
		success: function(position){
			map.setCenter(position.coords.latitude, position.coords.longitude);
		},
		error: function(error){
			alert('Geolocation failed: '+error.message);
		},
		not_supported: function(){
			alert("Your browser does not support geolocation");
		},
		always: function(){
			alert("Done!");
		}
	});
});
</script>

아래 주소로 접속하셔서 샘플을 보신후 자신의 홈페이지에 적용하세요
http://hpneo.github.com/gmaps/examples.html

共有 X Facebook LINE QR コード

コメント 0 件

最初のコメントを書いてみましょう。