구글맵 api
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script>
var map;
var Latitude = '${Latitude}'; //위도
var inclination = '${inclination}'; //경도
var title = '${title}'; //마킹 이름
function initialize() {
//var myLatlng = new google.maps.LatLng(37.555107,126.970691);
var myLatlng = new google.maps.LatLng(Latitude,inclination); //위도 , 경도 넣는다
var mapOptions = {
zoom: 18, //지도 확대 사이즈 높을수록 확대된다
center: myLatlng
}
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: title //타이틀 넣는곳
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div style='width:100%;height:100%'><div style='width:100%;height:100%'>
<div id="map-canvas"></div>
</div></div>
</body></html>
.jsp 파일로 가져다가 넣기만 하면 된다