Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이혜인
/
Multiplex_Ticketing_Platform
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
임승현
2022-05-16 22:16:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
603cbf5e8e58e622eb1507299d65c2a6a97c2642
603cbf5e
1 parent
2cae86d7
Searching Places by Keyword - Fixing Error 1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
MapAPI/test.html
MapAPI/test.html
View file @
603cbf5
...
...
@@ -9,18 +9,18 @@
<script
type=
"text/javascript"
src=
"//dapi.kakao.com/v2/maps/sdk.js?appkey=c48bde8b1f66c569193a37cbc58d1c87"
></script>
<script>
// 마커를 클릭하면 장소명을 표출할 인포윈도우 입니다
cons
t
infowindow
=
new
kakao
.
maps
.
InfoWindow
({
zIndex
:
1
});
le
t
infowindow
=
new
kakao
.
maps
.
InfoWindow
({
zIndex
:
1
});
//지도를 표시할 div
cons
t
container
=
document
.
getElementById
(
'map'
);
cons
t
options
=
{
le
t
container
=
document
.
getElementById
(
'map'
);
le
t
options
=
{
center
:
new
kakao
.
maps
.
LatLng
(
37.566826
,
126.9786567
),
level
:
3
};
cons
t
map
=
new
kakao
.
maps
.
Map
(
container
,
options
);
le
t
map
=
new
kakao
.
maps
.
Map
(
container
,
options
);
// 장소 검색 객체를 생성합니다
cons
t
ps
=
new
kakao
.
maps
.
services
.
Places
();
le
t
ps
=
new
kakao
.
maps
.
services
.
Places
();
// 키워드로 장소를 검색합니다
ps
.
keywordSearch
(
'
수원 영화관
'
,
placesSearchCB
);
ps
.
keywordSearch
(
'
시청역
'
,
placesSearchCB
);
// 키워드 검색 완료 시 호출되는 콜백함수 입니다
function
placesSearchCB
(
data
,
status
,
pagination
)
{
...
...
Please
register
or
login
to post a comment