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
Heo
2021-05-27 19:15:49 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ee7029c49f5d1bfa663d8e31a55bb4a082fd521d
ee7029c4
2 parents
9d899f39
1b8a187b
충돌수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
app.js
views/index.ejs
app.js
View file @
ee7029c
...
...
@@ -50,18 +50,6 @@ app.post('/',function(req,res,next){
app
.
get
(
'/'
,
function
(
req
,
res
){
res
.
render
(
'index'
);
// res.writeHead(200, {'Content-Type': 'text/html'});
// fs.readFile('./map/kakaomap.html', null, function(err,data){
// if(err){
// res.writeHead(404);
// res.write('error');
// }
// else{
// console.log('complete!');
// res.write(data);
// }
// res.end();
// });
})
app
.
listen
(
3000
,
function
(){
...
...
views/index.ejs
View file @
ee7029c
...
...
@@ -23,7 +23,7 @@
var
mapContainer
=
document
.
getElementById
(
'map'
),
// 지도를 표시할 div
mapOption
=
{
center
:
new
kakao
.
maps
.
LatLng
(
37.596672
,
127.051950
),
// 지도의 중심좌표
level
:
5
// 지도의 확대 레벨
level
:
3
// 지도의 확대 레벨
};
var
map
=
new
kakao
.
maps
.
Map
(
mapContainer
,
mapOption
);
// 지도를 생성합니다
...
...
@@ -45,7 +45,9 @@
geocoder
.
addressSearch
(
tmpaddr
,
function
(
result
,
status
)
{
if
(
status
===
kakao
.
maps
.
services
.
Status
.
OK
)
{
var
coords
=
new
kakao
.
maps
.
LatLng
(
result
[
0
].
y
,
result
[
0
].
x
);
count
+=
1
;
var
marker
=
new
kakao
.
maps
.
Marker
({
position
:
coords
,
clickable
:
true
});
...
...
Please
register
or
login
to post a comment