Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오지민
/
HomePurchaseAgePrediction
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김민기
2021-06-09 14:58:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e96c7143a3980677d2714c97895baa41e1bfc5fb
e96c7143
1 parent
3165a2a8
Get location from user
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
kakao/kakaomap.html
public/js/next_page.js
kakao/kakaomap.html
View file @
e96c714
...
...
@@ -23,9 +23,9 @@
<ul>
<div>
LIST
</div>
<li
id=
"apart1"
></i>
아파트 목록을 가져옵니다.
</li>
<li></i>
아파트 목록을 가져옵니다.
</li>
<li></i>
아파트 목록을 가져옵니다.
</li>
<li></i>
아파트 목록을 가져옵니다.
</li>
<li
id =
"you"
></i>
아파트 목록을 가져옵니다.
</li>
<li
id =
"you1"
></i>
아파트 목록을 가져옵니다.
</li>
<li
id =
"you2"
></i>
아파트 목록을 가져옵니다.
</li>
<li></i>
아파트 목록을 가져옵니다.
</li>
</ul>
</div>
...
...
public/js/next_page.js
View file @
e96c714
...
...
@@ -67,6 +67,19 @@ function displayMarker(Position, message) {
coords
.
extend
(
new
kakao
.
maps
.
Latlng
(
result
[
0
].
y
,
result
[
0
].
x
));
}
});
searchAddrFromCoords
(
map
.
getCenter
(),
displayCenterInfo
);
function
searchAddrFromCoords
(
coords
,
callback
)
{
// 좌표로 행정동 주소 정보를 요청합니다
geocoder
.
coord2RegionCode
(
coords
.
getLng
(),
coords
.
getLat
(),
callback
);
}
function
displayCenterInfo
(
result
,
status
)
{
if
(
status
===
kakao
.
maps
.
services
.
Status
.
OK
)
{
var
infoDiv
=
document
.
getElementById
(
'you'
);
infoDiv
.
innerHTML
=
result
[
0
].
address_name
;
}
}
function
displayapart
(
str
,
message
)
{
var
_str
=
document
.
getElementById
(
str
);
_str
.
innerText
=
message
;
...
...
Please
register
or
login
to post a comment