Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marker를 표시 하고 싶습니다. #3

Closed
hanjool opened this issue Mar 27, 2019 · 3 comments
Closed

Marker를 표시 하고 싶습니다. #3

hanjool opened this issue Mar 27, 2019 · 3 comments

Comments

@hanjool
Copy link

hanjool commented Mar 27, 2019

방법을 모르겠네요 ..

답변에 미리 감사 드립니다.

@hanjool hanjool changed the title 혹시 kakaoMap으로 버전업 하실 생각 없으신가요? Marker를 표시 하고 싶습니다. Mar 27, 2019
@ijy5154
Copy link

ijy5154 commented Jun 5, 2019

해당 내용으로 확인중에 해결하여 이와같은 문제 있으신 분들이 있을거 같아 링크 남깁니다.

https://devtalk.kakao.com/t/vue-js/53927/2

@okchangwon
Copy link
Owner

답변이 너무 늦어서 죄송합니다.
컴포넌트로 부터 map 객체를 전달받고(참고)
마커 생성 가이드대로 작업하시면 될 것 같습니다.

@GauthierPLM
Copy link

@okchangwon could you give a short code example of how we are supposed to add a marker to the map?

I succeeded to access Kakao' API but I have the error Vue warn]: Error in callback for watcher "map": "TypeError: this.P is not a function" with the following code:

  data: () => ({
    map: null
  }),
  methods: {
    mapLoaded(map) {
      this.map = map;

      window.kakao.maps.Marker({
        map: this.map,
        position: window.kakao.maps.LatLng(37.486979, 127.104046)
      });
    }
  }

I am not really fluent in Korean (but have to work with Kakao Map) so I might have missed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants