Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김서연
/
Corona_Vaccination_Medical_Institution
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김서연
2021-05-28 17:49:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
125c33eb9be962149d3b8f3b1eeeb5b338518986
125c33eb
1 parent
b4424c3d
위치 간격 스타일 조정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
views/index.ejs
views/index.ejs
View file @
125c33e
...
...
@@ -9,21 +9,23 @@
</head>
<body>
<center>
<h1>
COVID-19 예방접종 위탁 의료기관 조회
</h1>
<h1>
COVID-19 예방접종 위탁 의료기관 조회
</h1>
<br><hr>
<form
action=
"/"
method=
"post"
>
<p>
<input
type=
"text"
name=
"region"
placeholder=
"지역을 입력하세요"
size=
"15"
/>
<button
type=
"submit"
>
검색
</button>
<br>
<div
style=
"float:right; margin-right:250px;margin-right:70px; margin-bottom:7px;"
>
<input
type=
"text"
style=
"width:450px;height:30px;font-size:20px;"
name=
"region"
placeholder=
"지역을 입력하세요"
size=
"20"
/>
<button
type=
"submit"
style=
"height:35px;font-size:20px;"
>
검색
</button>
</div>
</p>
</form>
<div
id=
"map"
style=
"width:1300px;height:600px;"
></div>
</center>
<div
id=
"map"
style=
"width:1300px;height:750px; margin-left:100px; float:left; "
></div>
<script
type=
"text/javascript"
src=
"https://dapi.kakao.com/v2/maps/sdk.js?appkey=35fccf4b4e2a3179187346f26ed3f988&libraries=services"
></script>
<
% if(typeof(info) != "undefined"){ %>
<div
style=
"overflow:scroll; width:500px; height:6
00px; padding:10px
;"
>
<div
style=
"overflow:scroll; width:500px; height:6
75px; padding:10px;float:right; margin-right:70px; border:1px solid black
;"
>
<ol
id=
"placelist"
>
<
% for(i=0; i
<info
.
length
;
i
++){%
>
<li
class=
"item"
>
...
...
@@ -46,7 +48,7 @@
var
mapContainer
=
document
.
getElementById
(
'map'
),
// 지도를 표시할 div
mapOption
=
{
center
:
new
kakao
.
maps
.
LatLng
(
37.596672
,
127.051950
),
// 지도의 중심좌표
level
:
3
// 지도의 확대 레벨
level
:
2
// 지도의 확대 레벨
};
var
map
=
new
kakao
.
maps
.
Map
(
mapContainer
,
mapOption
);
// 지도를 생성합니다
...
...
@@ -78,9 +80,10 @@
// 마커를 지도에 표시합니다.
marker
.
setMap
(
map
);
var
num
=
1
;
// 인포윈도우를 생성합니다
var
infowindow
=
new
kakao
.
maps
.
InfoWindow
({
content
:
'<div style="width:250px;text-align:center;padding:5px 0;">'
+
'기관명: '
+
addr
.
orgnm
+
'</div>'
,
content
:
'<div style="width:250px;text-align:center;padding:5px 0;">'
+
addr
.
orgnm
+
'</div>'
,
});
// 마커에 mouseover 이벤트와 mouseout 이벤트를 등록합니다
// 이벤트 리스너로는 클로저를 만들어 등록합니다
...
...
Please
register
or
login
to post a comment